mirror of https://github.com/bjornbytes/lovr.git
Fix l_event;
This commit is contained in:
parent
64f9a310c3
commit
b2cb2c8752
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue