From e604c3a5d91c36eddf1f7a2882535d7848e08dd9 Mon Sep 17 00:00:00 2001 From: Igor Novikov Date: Sun, 10 Dec 2017 21:28:40 +0500 Subject: [PATCH] To avoid game crash after inspection of the helicopter Scat-5. And may be some more scenes? --- src/xrGame/ActorEffector_script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrGame/ActorEffector_script.cpp b/src/xrGame/ActorEffector_script.cpp index 17973ca7de8..d4eb3d39534 100644 --- a/src/xrGame/ActorEffector_script.cpp +++ b/src/xrGame/ActorEffector_script.cpp @@ -22,8 +22,8 @@ BOOL CAnimatorCamEffectorScriptCB::Valid() BOOL res = inherited::Valid(); if (!res && cb_name.size()) { - luabind::functor fl; - R_ASSERT(ai().script_engine().functor(*cb_name, fl)); + luabind::functor fl; + R_ASSERT(ai().script_engine().functor(*cb_name, fl)); fl(); cb_name = ""; }