From 5e0bd5bfc093ceca8fd7313ab6410e2a43fdb1c9 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 29 Jul 2019 21:00:30 -0400 Subject: 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 --- apps/plugins/sdl/progs/quake/r_edge.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3