fixup! Support location_id in [recall] and [unstore_unit]

(cherry-picked from commit 7821f470c2)
This commit is contained in:
Celtic Minstrel 2018-04-16 00:55:55 -04:00
parent 6d322cf63c
commit c6f10ad794

View file

@ -498,7 +498,7 @@ WML_HANDLER_FUNCTION(recall,, cfg)
map_location cfg_loc = cfg_to_loc(cfg);
if(cfg.has_attribute("location_id")) {
const auto& special_locs = resources::gameboard->map().special_locations().left;
auto& iter = special_locs.find(cfg["location_id"])
const auto& iter = special_locs.find(cfg["location_id"]);
if(iter != special_locs.end()) {
cfg_loc = iter->second;
}