diff Party.cpp @ 1898:dd9d4b7c1199

Fixing a small bug in Party::AddItemToParty + removing unreachable return
author Grumpy7
date Sun, 20 Oct 2013 23:12:09 -0700
parents 351b4ff10ac1
children c1c74df0a33e
line wrap: on
line diff
--- a/Party.cpp	Sun Oct 20 22:58:27 2013 -0700
+++ b/Party.cpp	Sun Oct 20 23:12:09 2013 -0700
@@ -1120,10 +1120,9 @@
     v7 = pIcons_LOD->LoadTexturePtr(v5, TEXTURE_16BIT_PALETTE);
     v21 = areWeLoadingTexture;
     v8 = 0;
-    int startId = uActiveCharacter >= 0 ? uActiveCharacter - 1 : 0;
     for (int i = 0; i < 4; i++)
     {
-      v9 = &pPlayers[(startId + i) % 4];  //start with current active player, then cycle right if item won't fit
+      v9 = &pPlayers[(uActiveCharacter + i) % 4];  //start with current active player, then cycle right if item won't fit
       v10 = v9->AddItem(-1, pItem->uItemID);
       if ( v10 )
       {