Fix l_event;

This commit is contained in:
bjorn 2020-10-27 01:40:08 -06:00
parent 64f9a310c3
commit b2cb2c8752
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ static int l_lovrEventPush(lua_State* L) {
static int l_lovrEventQuit(lua_State* L) {
int exitCode = luaL_optinteger(L, 1, 0);
Event event = { .type = EVENT_QUIT, .data.quit.exitCode = status };
Event event = { .type = EVENT_QUIT, .data.quit.exitCode = exitCode };
lovrEventPush(event);
return 0;
}