diff --git a/src/ActorFrame.cpp b/src/ActorFrame.cpp index d2968b32fc..bb94b5b025 100644 --- a/src/ActorFrame.cpp +++ b/src/ActorFrame.cpp @@ -551,7 +551,7 @@ public: static int AddChildFromPath( T* p, lua_State *L ) { // this one is tricky, we need to get an Actor from Lua. - pActor = ActorUtil::MakeActor( SArg(1) ); + Actor *pActor = ActorUtil::MakeActor( SArg(1) ); if ( pActor == NULL ) { lua_pushboolean( L, 0 );