Skip to content

Commit

Permalink
fix compiler warning in get_label
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 22, 2021
1 parent 37dadc2 commit 89af297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/game_lua_kernel.cpp
Expand Up @@ -3280,7 +3280,7 @@ int game_lua_kernel::intf_get_label(lua_State* L)
break;
// Side number - get label belonging to that side's team
case LUA_TNUMBER:
if(int n = luaL_checkinteger(L, 2); n > 0 && n <= teams().size()) {
if(size_t n = luaL_checkinteger(L, 2); n > 0 && n <= teams().size()) {
label = screen.labels().get_label(loc, teams().at(n - 1).team_name());
}
break;
Expand Down

0 comments on commit 89af297

Please sign in to comment.