hedgewars/uWorld.pas
changeset 3045 41732f986b4f
parent 3038 4e48c276a468
child 3089 8ad00781be08
--- a/hedgewars/uWorld.pas	Mon Mar 22 13:44:35 2010 +0000
+++ b/hedgewars/uWorld.pas	Mon Mar 22 17:48:19 2010 +0000
@@ -923,7 +923,8 @@
 
 procedure HideMission;
 begin
-    missionTimer:= 0
+    missionTimer:= 0;
+    if missionTex <> nil then FreeTexture(missionTex);
 end;
 
 procedure ShakeCamera(amount: LongWord);
@@ -957,7 +958,6 @@
 
 procedure freeModule;
 begin
-    if missionTex <> nil then FreeTexture(missionTex);
 end;
 
 end.