Fix warnings;

This commit is contained in:
bjorn 2018-01-26 19:01:20 -08:00
parent 66d0e42908
commit 84de048fa3
4 changed files with 8 additions and 1 deletions

View File

@ -144,6 +144,7 @@ int l_lovrEventQuit(lua_State* L) {
EventType type = EVENT_QUIT;
Event event = { .type = type, .data = data };
lovrEventPush(event);
return 0;
}
const luaL_Reg lovrEvent[] = {

View File

@ -1 +1,5 @@
#include "data/data.h"
void lovrDataInit() {
//
}

View File

@ -1 +1,3 @@
#pragma once
void lovrDataInit();

View File

@ -20,7 +20,7 @@ static GraphicsState state;
static void onCloseWindow(GLFWwindow* window) {
if (window == state.window) {
EventType type = EVENT_QUIT;
EventData data = { .quit = { 0 } };
EventData data = { .quit = { false, 0 } };
Event event = { .type = type, .data = data };
lovrEventPush(event);
}