--- 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);