[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/clone unit.c
From: |
Russell Smith |
Subject: |
[Stratagus-CVS] stratagus/src/clone unit.c |
Date: |
Fri, 24 Oct 2003 02:50:51 -0400 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Russell Smith <address@hidden> 03/10/24 02:50:50
Modified files:
src/clone : unit.c
Log message:
Fixed Crash on save when building a building from outside
Patches:
Index: stratagus/src/clone/unit.c
diff -u stratagus/src/clone/unit.c:1.314 stratagus/src/clone/unit.c:1.315
--- stratagus/src/clone/unit.c:1.314 Thu Oct 23 21:58:33 2003
+++ stratagus/src/clone/unit.c Fri Oct 24 02:50:50 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unit.c,v 1.314 2003/10/24 01:58:33 n0body Exp $
+// $Id: unit.c,v 1.315 2003/10/24 06:50:50 mr-russ Exp $
//@{
@@ -3654,10 +3654,14 @@
cframe = cframe->Next;
++frame;
}
- CLprintf(file, "\n 'data-builded '(worker %s",
+ CLprintf(file, "\n 'data-builded '(");
+
+ if (unit->Data.Builded.Worker) {
+ CLprintf(file, "worker %s ",
ref = UnitReference(unit->Data.Builded.Worker));
- free(ref);
- CLprintf(file, " progress %d frame %d",
+ free(ref);
+ }
+ CLprintf(file, "progress %d frame %d",
unit->Data.Builded.Progress, frame);
if (unit->Data.Builded.Cancel) {
CLprintf(file, " cancel");
@@ -3730,7 +3734,7 @@
int RunStart;
CLprintf(file, "\n;;; -----------------------------------------\n");
- CLprintf(file, ";;; MODULE: units $Id: unit.c,v 1.314 2003/10/24 01:58:33
n0body Exp $\n\n");
+ CLprintf(file, ";;; MODULE: units $Id: unit.c,v 1.315 2003/10/24 06:50:50
mr-russ Exp $\n\n");
//
// Local variables