Skip to content

Commit

Permalink
From SolraBizna: fix player:print (fixes #100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopper262 committed Jun 14, 2018
1 parent 7ab51de commit b5ac7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source_Files/Lua/lua_player.cpp
Expand Up @@ -1553,7 +1553,7 @@ int Lua_Player_Print(lua_State *L)
return luaL_error(L, "print: incorrect argument type");

int player_index = Lua_Player::Index(L, 1);
if (player_index == IsScriptHUDNonlocal() ? current_player_index : local_player_index)
if (player_index == (IsScriptHUDNonlocal() ? current_player_index : local_player_index))
{
lua_getglobal(L, "tostring");
lua_insert(L, -2);
Expand Down

0 comments on commit b5ac7ae

Please sign in to comment.