Przeglądaj źródła

Fixed crash in Vector3Prop

Ivan Safrin 12 lat temu
rodzic
commit
e2d514f976
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      IDE/Contents/Source/PolycodeProps.cpp

+ 4 - 0
IDE/Contents/Source/PolycodeProps.cpp

@@ -371,6 +371,10 @@ void ButtonProp::setPropWidth(Number width) {
 
 Vector3Prop::Vector3Prop(String caption) : PropProp(caption, "Vector3") {
     
+    xInput = NULL;
+    yInput = NULL;
+    zInput = NULL;
+    
 	labelX = new UILabel("X:", 11);
 	labelX->color.a = 1.0;
 	propContents->addChild(labelX);