Continue main loop only if p is non-null
This commit is contained in:
parent
5b18911111
commit
ebdcba9afb
@ -15,6 +15,10 @@ int main (int argc, char* args[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
p = Pong_init();
|
p = Pong_init();
|
||||||
|
if (p == NULL) {
|
||||||
|
printf("Pong failed to initialise!\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
Pong_render(p);
|
Pong_render(p);
|
||||||
|
|
||||||
while (!start) {
|
while (!start) {
|
||||||
|
Loading…
Reference in New Issue
Block a user