mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
Fixed crash when spawning decal without texture
See http://forum.zdoom.org/viewtopic.php?t=50977
This commit is contained in:
parent
51da78ba29
commit
8ba6f6ced5
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue