diff options
Diffstat (limited to 'src/script/cpp_api/s_env.cpp')
-rw-r--r-- | src/script/cpp_api/s_env.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_env.cpp b/src/script/cpp_api/s_env.cpp index 4b5feee96..2fe7d8074 100644 --- a/src/script/cpp_api/s_env.cpp +++ b/src/script/cpp_api/s_env.cpp @@ -70,7 +70,7 @@ void ScriptApiEnv::player_event(ServerActiveObject* player, std::string type) lua_getfield(L, -1, "registered_playerevents"); // Call callbacks - objectrefGetOrCreate(player); // player + objectrefGetOrCreate(L, player); // player lua_pushstring(L,type.c_str()); // event type try { script_run_callbacks(L, 2, RUN_CALLBACKS_MODE_FIRST); |