mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-01 19:23:51 +00: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:
parent
061a21da8f
commit
e5b4e86600
1 changed files with 2 additions and 2 deletions
|
|
@ -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"});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue