Selaa lähdekoodia

Ctor for C++.

NathanSweet 12 vuotta sitten
vanhempi
commit
66309c203c
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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);