Fix bug in wesnoth.map.read_location
This commit is contained in:
parent
f282eb7948
commit
900c576fe8
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue