mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
[Loot] Fix issue with nested data being loaded multiple times (#4192)
* [Loot] Fix issue with nested data being loaded multiple times * Update zone_loot.cpp * Fix #lootsim printout * Update loot.cpp
This commit is contained in:
@@ -116,13 +116,13 @@ void command_lootsim(Client *c, const Seperator *sep)
|
||||
c->Message(Chat::White, fmt::format("# Global Loot Table ID [{}]", id).c_str());
|
||||
c->SendChatLineBreak();
|
||||
|
||||
loot_table = zone->GetLootTable(loottable_id);
|
||||
loot_table = zone->GetLootTable(id);
|
||||
if (!loot_table) {
|
||||
c->Message(Chat::Red, fmt::format("Global Loot table not found [{}]", id).c_str());
|
||||
continue;
|
||||
}
|
||||
|
||||
le = zone->GetLootTableEntries(loottable_id);
|
||||
le = zone->GetLootTableEntries(id);
|
||||
|
||||
// translate above for loop using loot_table_entries
|
||||
for (auto &e: le) {
|
||||
|
||||
Reference in New Issue
Block a user