mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-06-04 14:15:53 -04:00
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.
This commit is contained in:
@@ -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"});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user