diff --git a/src/g_shared/a_decals.cpp b/src/g_shared/a_decals.cpp index ebefcdff0..dcad93a3d 100644 --- a/src/g_shared/a_decals.cpp +++ b/src/g_shared/a_decals.cpp @@ -528,7 +528,11 @@ void DBaseDecal::Spread (const FDecalTemplate *tpl, side_t *wall, fixed_t x, fix GetWallStuff (wall, v1, ldx, ldy); rorg = Length (x - v1->x, y - v1->y); - tex = TexMan[PicNum]; + if ((tex = TexMan[PicNum]) == NULL) + { + return; + } + int dwidth = tex->GetWidth (); DecalWidth = dwidth * ScaleX;