Skip to content

Commit

Permalink
fixup! Properly port [modify_side] to Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Dec 11, 2016
1 parent e803366 commit 5d35339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/game_lua_kernel.cpp
Expand Up @@ -2858,7 +2858,7 @@ int game_lua_kernel::intf_set_side_id(lua_State *L)
if(flag.empty() && color.empty()) {
return 0;
}
if(team_i < 0 || team_i >= teams().size()) {
if(team_i < 0 || static_cast<size_t>(team_i) >= teams().size()) {
return luaL_error(L, "set_side_id: side number %d out of range", team_i);
}
team& side = teams()[team_i];
Expand Down

0 comments on commit 5d35339

Please sign in to comment.