- Don't forget to init uVaribles inside LoadLocaleWrapper call
authorantonc27 <antonc27@mail.ru>
Tue, 03 May 2016 22:19:17 +0200
changeset 11802 975c130c3901
parent 11801 ae58d7ad0d97
child 11803 d85d273cb3aa
- Don't forget to init uVaribles inside LoadLocaleWrapper call
hedgewars/uLocale.pas
--- 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}