diff --git a/spine-c/include/spine/AttachmentLoader.h b/spine-c/include/spine/AttachmentLoader.h index c447de35e..b02556174 100644 --- a/spine-c/include/spine/AttachmentLoader.h +++ b/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);