Fix wesnoth.set_terrain without a mode
This commit is contained in:
parent
d3de899186
commit
96fba6b833
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
|
|||
new_ter = wesnoth.map.replace_if_failed(new_ter, mode, true)
|
||||
elseif mode == 'both' or mode == 'base' or mode == 'overlay' then
|
||||
new_ter = wesnoth.map['replace_' .. mode](new_ter)
|
||||
else
|
||||
elseif mode ~= nil then
|
||||
error('set_terrain: invalid mode')
|
||||
end
|
||||
wesnoth.current.map[loc] = new_ter
|
||||
|
|
Loading…
Add table
Reference in a new issue