hedgewars/uLocale.pas
changeset 11807 975c130c3901
parent 11795 ac93cfc17365
child 11833 a69124eb7ce7
child 12466 e29a4238dc19
--- a/hedgewars/uLocale.pas	Tue May 03 13:20:35 2016 -0400
+++ b/hedgewars/uLocale.pas	Tue May 03 22:19:17 2016 +0200
@@ -142,6 +142,8 @@
     //normally this var set in preInit of engine
     allOK := true;
     
+    uVariables.initModule;
+ 
     PathPrefix:= PathPrefix + #0;
     UserPathPrefix:= UserPathPrefix + #0;
     uPhysFSLayer.initModule(@PathPrefix[1], @UserPathPrefix[1]);
@@ -151,6 +153,7 @@
     LoadLocale(Strpas(filename));
  
     uPhysFSLayer.freeModule;
+    uVariables.freeModule;
 end;
 {$ENDIF}