]> git.jsancho.org Git - lugaru.git/blobdiff - Source/main.cpp
Fix a crash when map contains a negative number of hotspots
[lugaru.git] / Source / main.cpp
index 4ff4ebc29d788e0063ef18e70bbe2b0e1b44686b..e0bf4309188959db1be8b8f52e1946faeaa20e0e 100644 (file)
@@ -626,7 +626,7 @@ int main(int argc, char **argv)
 
     LOGFUNC;
 
-    try {
+    //~ try {
         {
             newGame();
 
@@ -677,16 +677,16 @@ int main(int argc, char **argv)
         CleanUp ();
 
         return 0;
-    } catch (const std::exception& error) {
-        CleanUp();
+    //~ } catch (const std::exception& error) {
+        //~ CleanUp();
 
-        std::string e = "Caught exception: ";
-        e += error.what();
+        //~ std::string e = "Caught exception: ";
+        //~ e += error.what();
 
-        LOG(e);
+        //~ LOG(e);
 
-        SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Exception catched", error.what(), NULL);
+        //~ SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Exception catched", error.what(), NULL);
 
-        return -1;
-    }
+        //~ return -1;
+    //~ }
 }