hedgewars/uScript.pas
changeset 3919 76d5b32758d9
parent 3906 c5da430cb3fd
child 3972 93212a97f01a
--- a/hedgewars/uScript.pas	Thu Sep 30 11:50:32 2010 -0400
+++ b/hedgewars/uScript.pas	Thu Sep 30 18:38:45 2010 +0200
@@ -875,7 +875,7 @@
 procedure ScriptLoad(name : shortstring);
 var ret : LongInt;
 begin
-ret:= luaL_loadfile(luaState, Str2PChar(name));
+ret:= luaL_loadfile(luaState, Str2PChar(Pathz[ptData] + '/' + name));
 if ret <> 0 then
     begin
     LuaError('Lua: Failed to load ' + name + '(error ' + IntToStr(ret) + ')');