From: Laszlo T. <ave...@us...> - 2006-06-30 06:58:49
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/Core In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv28066 Modified Files: Game.cpp Log Message: fixed crasher when an attacker stops attacking Index: Game.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/Game.cpp,v retrieving revision 1.116 retrieving revision 1.117 diff -C2 -d -r1.116 -r1.117 *** Game.cpp 26 Jun 2006 10:28:54 -0000 1.116 --- Game.cpp 30 Jun 2006 06:58:43 -0000 1.117 *************** *** 1108,1112 **** for(idx=Attackers.begin(); idx!=Attackers.end();idx++) { ! if (*idx==globalID) Attackers.erase(idx); } } --- 1108,1115 ---- for(idx=Attackers.begin(); idx!=Attackers.end();idx++) { ! if (*idx==globalID) { ! Attackers.erase(idx); ! break; ! } } } |