fixup! Support location_id in [recall] and [unstore_unit]
(cherry-picked from commit 7821f470c2
)
This commit is contained in:
parent
6d322cf63c
commit
c6f10ad794
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue