shithub: qk1

Download patch

ref: b85143c529f1ca238611290e73fae27320479b0b
parent: 5e9c01fa0f471e4449d7bf96b1903f89b761e0fc
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Dec 15 15:58:04 EST 2023

R_EdgeDrawing: make sure model is set

--- a/r_main.c
+++ b/r_main.c
@@ -687,7 +687,7 @@
 		R_RenderWorld();
 		for(i = 0; i < cl_numvisedicts; i++){
 			e = cl_visedicts[i];
-			if(e->model->type == mod_brush && !R_DrawEntity(e)){
+			if(e->model != nil && e->model->type == mod_brush && !R_DrawEntity(e)){
 				e->last_reject = ent_reject;
 				ent_reject = e;
 			}