From c88de2b609003786e8b345393244f5e6c769a096 Mon Sep 17 00:00:00 2001 From: Arthur Ice Date: Fri, 18 Apr 2014 22:18:13 -0700 Subject: [PATCH] itoa -> _itoa had to use this silly version of the itoa fix since we have another itoa define in another header file and this confuses things. Will fix this later when I do the string conversion stuff. --- zone/client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zone/client.cpp b/zone/client.cpp index 827a3f3f8..b6c36b279 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -2590,7 +2590,13 @@ void Client::LogLoot(Client* player, Corpse* corpse, const Item_Struct* item){ if (item!=0){ memset(itemid,0,sizeof(itemid)); memset(itemname,0,sizeof(itemid)); + +#ifdef _WINDOWS + _itoa(item->ID,itemid,10); +#else itoa(item->ID,itemid,10); +#endif + sprintf(itemname,"%s",item->Name); logtext=itemname;