Skip to content

Commit

Permalink
Fix crash on can_bypass_userlimit returning non-boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Jan 3, 2018
1 parent 2aad3be commit 2af47e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/script/cpp_api/s_player.cpp
Expand Up @@ -134,7 +134,6 @@ bool ScriptApiPlayer::can_bypass_userlimit(const std::string &name, const std::s
lua_pushstring(L, name.c_str());
lua_pushstring(L, ip.c_str());
runCallbacks(2, RUN_CALLBACKS_MODE_OR);
FATAL_ERROR_IF(!lua_isboolean(L, -1), "on_user_limitcheck must return a boolean");
return lua_toboolean(L, -1);
}

Expand Down

0 comments on commit 2af47e6

Please sign in to comment.