From: <fu...@us...> - 2009-10-03 14:22:21
|
Revision: 7332 http://gemrb.svn.sourceforge.net/gemrb/?rev=7332&view=rev Author: fuzzie Date: 2009-10-03 12:14:22 +0000 (Sat, 03 Oct 2009) Log Message: ----------- GivePartyAllEquipment: don't go through party backwards Modified Paths: -------------- gemrb/trunk/gemrb/plugins/Core/Actions.cpp Modified: gemrb/trunk/gemrb/plugins/Core/Actions.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/Core/Actions.cpp 2009-10-03 11:06:57 UTC (rev 7331) +++ gemrb/trunk/gemrb/plugins/Core/Actions.cpp 2009-10-03 12:14:22 UTC (rev 7332) @@ -4277,8 +4277,8 @@ return; } Game *game = core->GetGame(); - int i = game->GetPartySize(false); - while (i--) { + // pick the first actor first + for (int i = 0; i < game->GetPartySize(false); i++) { Actor *tar = game->GetPC(i,false); //don't try to give self, it would be an infinite loop if (tar==(Actor *) Sender) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |