fix a crash

This commit is contained in:
Glenn Maynard
2003-01-01 09:06:00 +00:00
parent d1b2a88a4e
commit 6b47bbb96f
+1 -1
View File
@@ -333,7 +333,7 @@ static void HandleInputEvents(float fDeltaTime)
{
// pressed Alt+F4
SDL_Event *event;
event = (SDL_Event *) malloc(sizeof(event));
event = (SDL_Event *) malloc(sizeof(SDL_Event));
event->type = SDL_QUIT;
SDL_PushEvent(event);
continue;