[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/action actions.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/action actions.c |
Date: |
30 Jan 2004 18:55:24 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/30 18:55:24
Modified files:
src/action : actions.c
Log message:
Fixed Possible crash when a Burning building is destoryed in
HandleRegeneration
Patches:
Index: stratagus/src/action/actions.c
diff -u stratagus/src/action/actions.c:1.118
stratagus/src/action/actions.c:1.119
--- stratagus/src/action/actions.c:1.118 Fri Jan 30 17:02:43 2004
+++ stratagus/src/action/actions.c Fri Jan 30 18:55:23 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: actions.c,v 1.118 2004/01/30 06:02:43 wizzard Exp $
+// $Id: actions.c,v 1.119 2004/01/30 07:55:23 wizzard Exp $
//@{
@@ -543,6 +543,10 @@
if (regenthiscycle) {
for (i = 0; i < tabsize; ++i) {
HandleRegenerations(table[i]);
+ if (table[i]->Destroyed) {
+ table[i] = table[--tabsize];
+ --i;
+ }
}
}