Skip to content

Commit

Permalink
Fixed luaglue_fatal() to work with Lua 5.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 28, 2012
1 parent 4f4225c commit cebc7d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/hammerfight/scripts/config.lua
@@ -1,4 +1,4 @@
local TOTAL_INSTALL_SIZE = 122128125;
local TOTAL_INSTALL_SIZE = 126978833;

local _ = MojoSetup.translate

Expand Down
2 changes: 1 addition & 1 deletion lua_glue.c
Expand Up @@ -574,7 +574,7 @@ static int luahook_format(lua_State *L)
// Doesn't actually return.
static int luahook_fatal(lua_State *L)
{
const char *errstr = lua_tostring(L, 1);
const char *errstr = lua_tostring(L, -1);
if (errstr == NULL)
return fatal(NULL); // doesn't actually return.
return fatal("%0", errstr); // doesn't actually return.
Expand Down

0 comments on commit cebc7d5

Please sign in to comment.