X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=view.c;h=7f5e00a54d8182d65e093b9764e0e4fa0ef4ddb5;hp=0f86ef820ca00e4d42480805fec4d75006e25507;hb=fdfa815d659f4ceec149ce3f907c107f38022c3d;hpb=dda9525d00cbd81ad257870fbcb60079e11e367f diff --git a/view.c b/view.c index 0f86ef82..7f5e00a5 100644 --- a/view.c +++ b/view.c @@ -356,7 +356,7 @@ void V_UpdateBlends (void) cl.cshifts[CSHIFT_BONUS].percent = 0; // set contents color - switch (Mod_PointContents (r_refdef.vieworg, cl.worldmodel)) + switch (cl.worldmodel ? cl.worldmodel->PointContents(cl.worldmodel, r_refdef.vieworg) : CONTENTS_EMPTY) { case CONTENTS_EMPTY: case CONTENTS_SOLID: