Browse Source

Return in Urho3DPlayer if the script language is not supported to prevent showing two error dialog boxes.

Lasse Öörni 12 years ago
parent
commit
d1a8f38e93
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/Tools/Urho3DPlayer/Urho3DPlayer.cpp

+ 2 - 0
Source/Tools/Urho3DPlayer/Urho3DPlayer.cpp

@@ -132,6 +132,7 @@ void Urho3DPlayer::Start()
         }
 #else
         ErrorExit("AngelScript is not enabled!");
+        return;
 #endif
     }
     else
@@ -149,6 +150,7 @@ void Urho3DPlayer::Start()
         }
 #else
         ErrorExit("Lua is not enabled!");
+        return;
 #endif
     }