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 /apps/plugins/sdl/progs/quake/r_edge.c | |
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
Diffstat (limited to 'apps/plugins/sdl/progs/quake/r_edge.c')
-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: | |||
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; |