mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 18:28:18 +00:00
Fix inverted condition in Lua shroud op API
This commit is contained in:
parent
df0a665571
commit
2069449805
@ -830,7 +830,7 @@ int game_lua_kernel::intf_shroud_op(lua_State *L, bool place_shroud)
|
||||
|
||||
int side_num = luaL_checkinteger(L, 1);
|
||||
|
||||
if(!lua_isstring(L, 2)) {
|
||||
if(lua_isstring(L, 2)) {
|
||||
std::string data = lua_tostring(L, 2);
|
||||
// Special case - using a shroud_data string, or "all"
|
||||
team& side = teams()[side_num - 1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user