diff options
Diffstat (limited to 'src/tracker_state.cpp')
-rw-r--r-- | src/tracker_state.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tracker_state.cpp b/src/tracker_state.cpp index 40ba6c4..bf2725a 100644 --- a/src/tracker_state.cpp +++ b/src/tracker_state.cpp | |||
@@ -473,8 +473,7 @@ class StateCalculator { | |||
473 | Decision decision = IsNonGroupedDoorReachable(panel_door_obj); | 473 | Decision decision = IsNonGroupedDoorReachable(panel_door_obj); |
474 | 474 | ||
475 | if (report) { | 475 | if (report) { |
476 | (*report)[AP_GetItemName(panel_door_obj.ap_item_id)] = | 476 | (*report)[panel_door_obj.item_name] = (decision == kYes); |
477 | (decision == kYes); | ||
478 | } | 477 | } |
479 | 478 | ||
480 | if (decision != kYes) { | 479 | if (decision != kYes) { |
@@ -485,7 +484,7 @@ class StateCalculator { | |||
485 | for (int item_id : reqs.items) { | 484 | for (int item_id : reqs.items) { |
486 | bool has_item = AP_HasItem(item_id); | 485 | bool has_item = AP_HasItem(item_id); |
487 | if (report) { | 486 | if (report) { |
488 | (*report)[AP_GetItemName(item_id)] = has_item; | 487 | (*report)[GD_GetItemName(item_id)] = has_item; |
489 | } | 488 | } |
490 | 489 | ||
491 | if (!has_item) { | 490 | if (!has_item) { |