mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 03:20:26 +00:00
Fix bug in wesnoth.map.read_location
This commit is contained in:
parent
f282eb7948
commit
900c576fe8
@ -7,6 +7,7 @@ end
|
||||
|
||||
function wesnoth.map.read_location(...)
|
||||
local x, y = ...
|
||||
if x == nil then return nil, 0 end
|
||||
if y == nil or type(x) == 'table' or type(x) == 'userdata' then
|
||||
if type(x.x) == 'number' and type(x.y) == 'number' then
|
||||
x, y = x.x, x.y
|
||||
|
Loading…
x
Reference in New Issue
Block a user