fixup 0539a68eb
This commit is contained in:
parent
4b8e37044c
commit
1ba783959e
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ function methods:random()
|
||||||
-- Return -1, -1 if empty
|
-- Return -1, -1 if empty
|
||||||
local r = wesnoth.random(self:size())
|
local r = wesnoth.random(self:size())
|
||||||
local i, xr, yr = 1, -1, -1
|
local i, xr, yr = 1, -1, -1
|
||||||
map:iter( function(x, y, v)
|
self:iter( function(x, y, v)
|
||||||
if (i == r) then xr, yr = x, y end
|
if (i == r) then xr, yr = x, y end
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Reference in a new issue