Explorar o código

Ctor for C++.

NathanSweet %!s(int64=12) %!d(string=hai) anos
pai
achega
66309c203c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);