Skip to content

Commit b9da0e9

Browse files
committed
Returned type changed from LPCSTR to void since these lua-functions does not return any value. + it now crash since i removed dangerous [nil to char*] conversion in luabind.
1 parent 7dbf571 commit b9da0e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xrGame/ActorCondition.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,8 @@ void CActorCondition::UpdateTutorialThresholds()
748748
}
749749

750750
if (!b) {
751-
luabind::functor<LPCSTR> fl;
752-
R_ASSERT(ai().script_engine().functor<LPCSTR>(cb_name, fl));
751+
luabind::functor<void> fl;
752+
R_ASSERT(ai().script_engine().functor<void>(cb_name, fl));
753753
fl();
754754
}
755755
}

0 commit comments

Comments
 (0)