hedgewars/uScript.pas
changeset 8978 e6ef8fe314bd
parent 8473 555235e90010
child 8980 37f4cdd9cd2c
--- a/hedgewars/uScript.pas	Sat May 11 21:19:44 2013 -0400
+++ b/hedgewars/uScript.pas	Sat May 11 21:50:14 2013 -0400
@@ -2039,7 +2039,8 @@
     // call the script file
     lua_pcall(luaState, 0, 0, 0);
     ScriptLoaded:= true
-    end
+    end;
+    hedgewarsMountPackage(Str2PChar(copy(s, 1, length(s)-4)+'.hwp'));
 end;
 
 procedure SetGlobals;