Răsfoiți Sursa

Ctor for C++.

NathanSweet 12 ani în urmă
părinte
comite
66309c203c
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      spine-c/include/spine/AttachmentLoader.h

+ 3 - 0
spine-c/include/spine/AttachmentLoader.h

@@ -40,6 +40,9 @@ struct AttachmentLoader {
 	const char* error2;
 
 	const void* const vtable;
+#ifdef __cplusplus
+	AttachmentLoader () : error1(0), error2(0), vtable(0) {}
+#endif
 };
 
 void AttachmentLoader_dispose (AttachmentLoader* self);