mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-26 07:30:48 +00:00
Simplify error logging
This commit is contained in:
1 parent
98cbb7d781
commit
678c25e02c
44 files changed
+532
-486
No files matched your search
+2
-2
@@ -617,11 +617,11 @@ void NPC::QueryLoot(Client* to)
|
||||
int item_count = 0;
|
||||
for (auto cur = itemlist.begin(); cur != itemlist.end(); ++cur, ++item_count) {
|
||||
if (!(*cur)) {
|
||||
Log(Logs::General, Logs::Error, "NPC::QueryLoot() - ItemList error, null item");
|
||||
LogError("NPC::QueryLoot() - ItemList error, null item");
|
||||
continue;
|
||||
}
|
||||
if (!(*cur)->item_id || !database.GetItem((*cur)->item_id)) {
|
||||
Log(Logs::General, Logs::Error, "NPC::QueryLoot() - Database error, invalid item");
|
||||
LogError("NPC::QueryLoot() - Database error, invalid item");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user