fix: misplaced brace included book handlers inside LOOT_CLEAR_MONEY loop

The for-loop over {SMSG_LOOT_CLEAR_MONEY} was missing its closing brace,
so SMSG_READ_ITEM_OK and SMSG_READ_ITEM_FAILED registrations were inside
the loop body. Works by accident (single iteration) but fragile and
misleading — future additions to the loop would re-register book handlers.
This commit is contained in:
Kelsi 2026-03-29 17:52:43 -07:00
parent 020e016853
commit b9ecc26f50

View file

@ -86,6 +86,7 @@ void InventoryHandler::registerOpcodes(DispatchTable& table) {
};
for (auto op : { Opcode::SMSG_LOOT_CLEAR_MONEY }) {
table[op] = [](network::Packet& /*packet*/) {};
}
// ---- Read item (books) (moved from GameHandler) ----
table[Opcode::SMSG_READ_ITEM_OK] = [this](network::Packet& packet) {
@ -97,7 +98,6 @@ void InventoryHandler::registerOpcodes(DispatchTable& table) {
owner_.addSystemChatMessage("You cannot read this item.");
packet.skipAll();
};
}
// ---- Loot roll start / notifications ----
table[Opcode::SMSG_LOOT_START_ROLL] = [this](network::Packet& packet) {