From e5b4e86600fe072d7d23d61893f3f7bc989cf6b3 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sun, 29 Mar 2026 19:31:29 -0700 Subject: [PATCH] fix: misleading indentation on BAG_UPDATE/UNIT_INVENTORY_CHANGED emits The two emit calls were indented 12 spaces (suggesting a nested block) instead of 8 (matching the enclosing if). Same class of maintenance trap as the PLAYER_ALIVE/PLAYER_UNGHOST fix in b3abf04d. --- src/game/entity_controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/entity_controller.cpp b/src/game/entity_controller.cpp index 27253416..7022e9e7 100644 --- a/src/game/entity_controller.cpp +++ b/src/game/entity_controller.cpp @@ -1228,8 +1228,8 @@ void EntityController::updateItemOnValuesUpdate(const UpdateBlock& block, } if (inventoryChanged) { owner_.rebuildOnlineInventory(); - pendingEvents_.emit("BAG_UPDATE", {}); - pendingEvents_.emit("UNIT_INVENTORY_CHANGED", {"player"}); + pendingEvents_.emit("BAG_UPDATE", {}); + pendingEvents_.emit("UNIT_INVENTORY_CHANGED", {"player"}); } }