Skip to content

Commit

Permalink
removed wesnoth.put_unit() warning
Browse files Browse the repository at this point in the history
this warning triggered also when using u:to_map(x,y) which is clearly
not intended.
  • Loading branch information
gfgtdf committed Mar 14, 2016
1 parent 7a8957e commit b2fff5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/game_lua_kernel.cpp
Expand Up @@ -2339,7 +2339,7 @@ int game_lua_kernel::intf_put_unit(lua_State *L)
if (!map().on_board(loc))
return luaL_argerror(L, 1, "invalid location");
} else {
WRN_LUA << "wesnoth.put_unit(x, y, unit) is deprecated. Use wesnoth.put_unit(unit, x, y) instead\n";
//WRN_LUA << "wesnoth.put_unit(x, y, unit) is deprecated. Use wesnoth.put_unit(unit, x, y) instead\n";
}
}
else if (!lua_isnoneornil(L, unit_arg))
Expand Down

0 comments on commit b2fff5a

Please sign in to comment.