Player Error log when a item is used but the display charges is 0

This commit is contained in:
image 2020-09-10 12:16:14 -04:00
parent c21ee782ec
commit 679c1bd779

View file

@ -1432,6 +1432,8 @@ void Commands::Process(int32 index, EQ2_16BitString* command_parms, Client* clie
item->save_needed = true;
client->QueuePacket(item->serialize(client->GetVersion(), false, client->GetPlayer()));
}
else
LogWrite(PLAYER__ERROR, 0, "Command", "%s: Item %s (%i) attempted to be used, however display_charges is 0.", client->GetPlayer()->GetName(), item->name.c_str(), item->details.item_id);
}
}
}