Browse Source

don't crash if tween was removed and you call complete

dmuratshin 9 years ago
parent
commit
dd1ab04f60
1 changed files with 3 additions and 0 deletions
  1. 3 0
      oxygine/src/Tween.cpp

+ 3 - 0
oxygine/src/Tween.cpp

@@ -100,6 +100,9 @@ namespace oxygine
 
         OX_ASSERT(_client);
 
+		if (!_client)
+			return;
+
 //OX_ASSERT(!"not implemented");
 
 //not started yet because has delay