objwriter.cxx

changeset 16
393359908179
parent 3
08cab2b67dce
child 20
d7b13805d1e0
--- a/objwriter.cxx	Sat Jul 14 16:31:21 2012 +0300
+++ b/objwriter.cxx	Sat Jul 14 17:24:21 2012 +0300
@@ -38,6 +38,7 @@
  *	POSSIBILITY OF SUCH DAMAGE.
  */
 
+#define __OBJWRITER_CXX__
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -48,6 +49,7 @@
 #include "bots.h"
 
 ObjWriter::ObjWriter (str path) {
+	numWrittenBytes = 0;
 	fp = fopen (path, "w");
 	CHECK_FILE (fp, path, "writing");
 }

mercurial