Skip to content

Commit 2af47e6

Browse files
committedJan 3, 2018
Fix crash on can_bypass_userlimit returning non-boolean
1 parent 2aad3be commit 2af47e6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎src/script/cpp_api/s_player.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ bool ScriptApiPlayer::can_bypass_userlimit(const std::string &name, const std::s
134134
lua_pushstring(L, name.c_str());
135135
lua_pushstring(L, ip.c_str());
136136
runCallbacks(2, RUN_CALLBACKS_MODE_OR);
137-
FATAL_ERROR_IF(!lua_isboolean(L, -1), "on_user_limitcheck must return a boolean");
138137
return lua_toboolean(L, -1);
139138
}
140139

0 commit comments

Comments
 (0)
Please sign in to comment.