Fix compiler warning in zone/inventory.cpp

This commit is contained in:
Michael Cook (mackal) 2014-08-21 17:59:52 -04:00
parent 663dbf9fc2
commit 69944d907d

View File

@ -200,16 +200,15 @@ bool Client::CheckLoreConflict(const Item_Struct* item) {
} }
bool Client::SummonItem(uint32 item_id, int16 charges, uint32 aug1, uint32 aug2, uint32 aug3, uint32 aug4, uint32 aug5, bool attuned, uint16 to_slot) { bool Client::SummonItem(uint32 item_id, int16 charges, uint32 aug1, uint32 aug2, uint32 aug3, uint32 aug4, uint32 aug5, bool attuned, uint16 to_slot) {
/* Set a timestamp in an entity variable for plugin check_handin.pl in return_items /* Set a timestamp in an entity variable for plugin check_handin.pl in return_items
This will stopgap players from items being returned if global_npc.pl has a catch all return_items This will stopgap players from items being returned if global_npc.pl has a catch all return_items
*/ */
struct timeval read_time; struct timeval read_time;
char buffer[50]; char buffer[50];
gettimeofday(&read_time, 0); gettimeofday(&read_time, 0);
sprintf(buffer, "%i.%i \n", read_time.tv_sec, read_time.tv_usec); sprintf(buffer, "%li.%li \n", read_time.tv_sec, read_time.tv_usec);
this->SetEntityVariable("Recieved_Item", buffer); this->SetEntityVariable("Recieved_Item", buffer);
// TODO: update calling methods and script apis to handle a failure return // TODO: update calling methods and script apis to handle a failure return
const Item_Struct* item = database.GetItem(item_id); const Item_Struct* item = database.GetItem(item_id);