summaryrefslogtreecommitdiffstats
path: root/apps/plugins/sdl
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2019-07-29 21:00:30 -0400
committerFranklin Wei <franklin@rockbox.org>2019-07-30 03:44:25 +0200
commit5e0bd5bfc093ceca8fd7313ab6410e2a43fdb1c9 (patch)
treef9c018c4fd40a93d6aa97d51eb87f252e97285ef /apps/plugins/sdl
parentcaee6c578dededa7ef08305549cc0b42f3d3a444 (diff)
downloadrockbox-5e0bd5bfc093ceca8fd7313ab6410e2a43fdb1c9.tar.gz
rockbox-5e0bd5bfc093ceca8fd7313ab6410e2a43fdb1c9.tar.bz2
rockbox-5e0bd5bfc093ceca8fd7313ab6410e2a43fdb1c9.zip
quake: add notification upon strange error
For some reason a NULL pointer creeps in, on the simulator only, it seems. This makes sure that if it happens on target we'll know about it. Change-Id: I7a5bc9dd3ef71f28d58d0d456d23007dc0d49ce3
Diffstat (limited to 'apps/plugins/sdl')
-rw-r--r--apps/plugins/sdl/progs/quake/r_edge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/sdl/progs/quake/r_edge.c b/apps/plugins/sdl/progs/quake/r_edge.c
index 1fff765a3a..6353f47e25 100644
--- a/apps/plugins/sdl/progs/quake/r_edge.c
+++ b/apps/plugins/sdl/progs/quake/r_edge.c
@@ -275,6 +275,9 @@ pushback:
// find out where the edge goes in the edge list
pwedge = pedge->prev->prev;
+ // BUG??? - FW 7/29/19
+ if(!pwedge || !pedge)
+ rb->splashf(HZ, "BUG 1!!!!!");
while (pwedge->u > pedge->u)
{
pwedge = pwedge->prev;