Skip to content

Commit

Permalink
Returned type changed from LPCSTR to void since these lua-functions d…
Browse files Browse the repository at this point in the history
…oes not return any value. + it now crash since i removed dangerous [nil to char*] conversion in luabind.
  • Loading branch information
ShokerStlk committed Feb 17, 2017
1 parent 7dbf571 commit b9da0e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrGame/ActorCondition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,8 @@ void CActorCondition::UpdateTutorialThresholds()
}

if (!b) {
luabind::functor<LPCSTR> fl;
R_ASSERT(ai().script_engine().functor<LPCSTR>(cb_name, fl));
luabind::functor<void> fl;
R_ASSERT(ai().script_engine().functor<void>(cb_name, fl));
fl();
}
}
Expand Down

0 comments on commit b9da0e9

Please sign in to comment.