diff --git a/Client/mods/deathmatch/logic/CMapEventManager.cpp b/Client/mods/deathmatch/logic/CMapEventManager.cpp index 27042ffa1cb..c836d9c012a 100644 --- a/Client/mods/deathmatch/logic/CMapEventManager.cpp +++ b/Client/mods/deathmatch/logic/CMapEventManager.cpp @@ -222,7 +222,7 @@ bool CMapEventManager::Call(const char* szName, const CLuaArguments& Arguments, lua_pushresource(pState, pSourceResource); lua_setglobal(pState, "sourceResource"); - lua_pushelement(pState, pSourceResource->GetResourceDynamicEntity()); + lua_pushelement(pState, pSourceResource->GetResourceEntity()); lua_setglobal(pState, "sourceResourceRoot"); } else @@ -400,4 +400,4 @@ void CMapEventManager::GetHandles(CLuaMain* pLuaMain, const char* szName, lua_St } } } -} \ No newline at end of file +}