From 1ba783959e634dbc41e05a46e906cd6ecfe9e1f8 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Thu, 11 May 2017 14:23:26 -0400 Subject: [PATCH] fixup 0539a68eb --- data/lua/location_set.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/lua/location_set.lua b/data/lua/location_set.lua index 629f7ebc79d..0e938a34810 100644 --- a/data/lua/location_set.lua +++ b/data/lua/location_set.lua @@ -198,7 +198,7 @@ function methods:random() -- Return -1, -1 if empty local r = wesnoth.random(self:size()) 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 i = i + 1 end)