Bläddra i källkod

Used zero for enums in C++ ctors.

NathanSweet 10 år sedan
förälder
incheckning
0815fad4d6
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      spine-c/include/spine/Animation.h
  2. 1 1
      spine-c/include/spine/Attachment.h

+ 1 - 1
spine-c/include/spine/Animation.h

@@ -104,7 +104,7 @@ struct spTimeline {
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 	spTimeline() :
 	spTimeline() :
-		type(SP_TIMELINE_SCALE),
+		type(0),
 		vtable(0) {
 		vtable(0) {
 	}
 	}
 #endif
 #endif

+ 1 - 1
spine-c/include/spine/Attachment.h

@@ -47,7 +47,7 @@ typedef struct spAttachment {
 #ifdef __cplusplus
 #ifdef __cplusplus
 	spAttachment() :
 	spAttachment() :
 		name(0),
 		name(0),
-		type(SP_ATTACHMENT_REGION),
+		type(0),
 		vtable(0) {
 		vtable(0) {
 	}
 	}
 #endif
 #endif