use a better multi_sw_ok_to_commit() check
authorTaylor Richards <taylor@icculus.org>
Tue, 13 Mar 2018 17:34:11 +0000 (13:34 -0400)
committerTaylor Richards <taylor@icculus.org>
Tue, 13 Mar 2018 17:34:11 +0000 (13:34 -0400)
src/network/multiui.cpp

index 7d45162..ba2abf2 100644 (file)
@@ -5815,7 +5815,9 @@ int multi_create_ok_to_commit()
 #ifndef MAKE_FS1
                // squad war
                else {
-                       return multi_sw_ok_to_commit();
+                       if ( !multi_sw_ok_to_commit() ) {
+                               return 0;
+                       }
                }
 #endif
        }