hedgewars/uScript.pas
changeset 3045 41732f986b4f
parent 3043 3acdb4dac6eb
child 3058 2ebc20485344
--- a/hedgewars/uScript.pas	Mon Mar 22 13:44:35 2010 +0000
+++ b/hedgewars/uScript.pas	Mon Mar 22 17:48:19 2010 +0000
@@ -719,6 +719,7 @@
 begin
 // initialize lua
 luaState:= lua_open;
+TryDo(luaState <> nil, 'lua_open failed', true);
 
 // open internal libraries
 luaopen_base(luaState);