From 69944d907dcc68f94f29f11daac3b7576d069b89 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 21 Aug 2014 17:59:52 -0400 Subject: [PATCH] Fix compiler warning in zone/inventory.cpp --- zone/inventory.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zone/inventory.cpp b/zone/inventory.cpp index 7a36aa5e9..c626fad43 100644 --- a/zone/inventory.cpp +++ b/zone/inventory.cpp @@ -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) { - /* 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 */ struct timeval read_time; char buffer[50]; 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); - + // TODO: update calling methods and script apis to handle a failure return const Item_Struct* item = database.GetItem(item_id);