Failed to detect ecosystem of selected island, fix missing plants in palette, kaetemi/ryzomclassic#132

ryzomclassic-develop
kaetemi 4 years ago
parent d2900df0f6
commit 9580bd5ec0

@ -1240,9 +1240,11 @@ function r2.acts:updatePaletteFromEcosystem()
-- search for ecosystem of current location -- search for ecosystem of current location
local islandEcosystem local islandEcosystem
for ecoName, v in pairs(self.islands) do for ecoName, v in pairs(self.islands) do
if self.islands[ecoName][self:getIslandNb(currentLocation.IslandName)].name==currentLocation.IslandName then if self.islands[ecoName][self:getIslandNb(currentLocation.IslandName)] then
islandEcosystem = ecoName if self.islands[ecoName][self:getIslandNb(currentLocation.IslandName)].name==currentLocation.IslandName then
break islandEcosystem = ecoName
break
end
end end
end end

Loading…
Cancel
Save