diff options
author | Franklin Wei <franklin@rockbox.org> | 2019-07-29 21:00:30 -0400 |
---|---|---|
committer | Franklin Wei <franklin@rockbox.org> | 2019-07-30 03:44:25 +0200 |
commit | 5e0bd5bfc093ceca8fd7313ab6410e2a43fdb1c9 (patch) | |
tree | f9c018c4fd40a93d6aa97d51eb87f252e97285ef | |
parent | caee6c578dededa7ef08305549cc0b42f3d3a444 (diff) | |
download | rockbox-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.c | 3 |
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; |