Buildsystem/MSVC: Warning fixes
C4800 'type' : forcing value to bool 'true' or 'false' (performance warning) C4127 conditional expression is constant
This commit is contained in:
1 parent
345bed25d2
commit
7532864264
104 files changed
+386
-387
No files matched your search
@@ -2744,7 +2744,7 @@ bool Guild::_DoItemsMove(MoveItemData* pSrc, MoveItemData* pDest, bool sendError
|
||||
Item* pDestItem = pDest->GetItem();
|
||||
bool swap = (pDestItem != NULL);
|
||||
|
||||
Item* pSrcItem = pSrc->GetItem(splitedAmount);
|
||||
Item* pSrcItem = pSrc->GetItem(splitedAmount != 0);
|
||||
// 1. Can store source item in destination
|
||||
if (!pDest->CanStore(pSrcItem, swap, sendError))
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user