Skip to content

Commit

Permalink
Fix [terrain_mask][rule]layer=
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 28, 2021
1 parent a97a04e commit 3e31fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/game_lua_kernel.cpp
Expand Up @@ -1037,7 +1037,7 @@ int game_lua_kernel::intf_terrain_mask(lua_State *L)
lua_pop(L, 1);
}

if(luaW_tableget(L, -1, "mode")) {
if(luaW_tableget(L, -1, "layer")) {
auto str = luaW_tostring(L, -1);
rule.mode_ = str == "base" ? terrain_type_data::BASE : (str == "overlay" ? terrain_type_data::OVERLAY : terrain_type_data::BOTH);
lua_pop(L, 1);
Expand Down

0 comments on commit 3e31fdb

Please sign in to comment.