- fixed lookup for tile aliases pointing to non-existent tiles.

This commit is contained in:
Christoph Oelckers 2022-12-11 11:48:39 +01:00
parent 564e9d2905
commit 9bc0a43028

View file

@ -505,7 +505,7 @@ void FMapInfoParser::ParseSwitches()
{ {
next: next:
sc.MustGetString(); sc.MustGetString();
auto thisframe = TexMan.CheckForTexture(sc.String, ETextureType::Any); auto thisframe = TexMan.CheckForTexture(sc.String, ETextureType::Any, texlookupflags);
if (!thisframe.isValid()) if (!thisframe.isValid())
{ {
sc.ScriptMessage("Unknown texture '%s' in switch definition", sc.String); sc.ScriptMessage("Unknown texture '%s' in switch definition", sc.String);