]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/main.cpp
fixed crash on prefs reset; fixed crash on next-leak-spot
[xonotic/netradiant.git] / radiant / main.cpp
index c9a508337dfe92ae19062ba4e729600d716b5e25..dc764663b4a0307d0129a2ca7619701e1fad6ce3 100644 (file)
@@ -550,9 +550,9 @@ int main (int argc, char* argv[])
   
   remove_global_pid();
 
-  create_local_pid();
+  g_Preferences.Init(); // must occur before create_local_pid() to allow preferences to be reset
 
-  g_Preferences.Init();
+  create_local_pid();
 
   // in a very particular post-.pid startup
   // we may have the console turned on and want to keep it that way