Linedef type 14 UDMF conversion: Don't fill stringargs[0] if toptexture is empty

This commit is contained in:
MascaraSnake 2023-02-25 13:24:14 +01:00
parent 707860815b
commit 283f7e8919

View file

@ -4209,6 +4209,7 @@ static void P_ConvertBinaryLinedefTypes(void)
lines[i].args[0] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS;
lines[i].args[1] = sides[lines[i].sidenum[0]].rowoffset >> FRACBITS;
lines[i].args[2] = !!(lines[i].flags & ML_SKEWTD);
if (sides[lines[i].sidenum[0]].toptexture)
P_WriteConstant(sides[lines[i].sidenum[0]].toptexture, &lines[i].stringargs[0]);
break;
case 16: //Minecart parameters