fix possible crash in tools/editor/spatial_editor_gizmos.cpp

spatial_node and base where uninitialized, which could lead to crash
This commit is contained in:
Hubert Jarosz 2016-02-28 20:32:36 +01:00 committed by Hubert Jarosz
parent 4b14c18d13
commit 96d6a74e25
2 changed files with 2 additions and 3 deletions

View file

@ -708,7 +708,8 @@ void EditorSpatialGizmo::_bind_methods() {
EditorSpatialGizmo::EditorSpatialGizmo() {
valid=false;
billboard_handle=false;
base=NULL;
spatial_node=NULL;
}
EditorSpatialGizmo::~EditorSpatialGizmo(){
@ -3219,4 +3220,3 @@ SpatialEditorGizmos::SpatialEditorGizmos() {
}

View file

@ -491,4 +491,3 @@ public:
};
#endif // SPATIAL_EDITOR_GIZMOS_H