summaryrefslogtreecommitdiff
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
parentcaee6c578dededa7ef08305549cc0b42f3d3a444 (diff)
downloadrockbox-5e0bd5bfc093ceca8fd7313ab6410e2a43fdb1c9.tar.gz
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
-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:
275 // find out where the edge goes in the edge list 275 // find out where the edge goes in the edge list
276 pwedge = pedge->prev->prev; 276 pwedge = pedge->prev->prev;
277 277
278 // BUG??? - FW 7/29/19
279 if(!pwedge || !pedge)
280 rb->splashf(HZ, "BUG 1!!!!!");
278 while (pwedge->u > pedge->u) 281 while (pwedge->u > pedge->u)
279 { 282 {
280 pwedge = pwedge->prev; 283 pwedge = pwedge->prev;