From: <wel...@us...> - 2010-01-17 21:10:40
|
Revision: 5333 http://planeshift.svn.sourceforge.net/planeshift/?rev=5333&view=rev Author: weltall2 Date: 2010-01-17 21:10:33 +0000 (Sun, 17 Jan 2010) Log Message: ----------- fixed warnings patch by rlydontknow Modified Paths: -------------- trunk/src/server/bulkobjects/pscharinventory.cpp Modified: trunk/src/server/bulkobjects/pscharinventory.cpp =================================================================== --- trunk/src/server/bulkobjects/pscharinventory.cpp 2010-01-17 21:06:40 UTC (rev 5332) +++ trunk/src/server/bulkobjects/pscharinventory.cpp 2010-01-17 21:10:33 UTC (rev 5333) @@ -592,11 +592,11 @@ for (size_t i = 0; i < itemIndices.GetSize() && max < item->GetStackCount(); i++) { psItem * tocheck = inventory[itemIndices[i]].item; - int fits = MAX_STACK_COUNT - tocheck->GetStackCount(); + size_t fits = MAX_STACK_COUNT - tocheck->GetStackCount(); if (tocheck->GetContainerID()) { - int size = GetContainedSize(FindItemID(tocheck->GetContainerID())) - FindItemID(tocheck->GetContainerID())->GetContainerMaxSize(); + size_t size = GetContainedSize(FindItemID(tocheck->GetContainerID())) - FindItemID(tocheck->GetContainerID())->GetContainerMaxSize(); if(size/item->GetItemSize() > fits) fits = size/item->GetItemSize(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |