diff --git a/src/gl/scene/gl_sprite.cpp b/src/gl/scene/gl_sprite.cpp index af7eec06c..c7efe1eb8 100644 --- a/src/gl/scene/gl_sprite.cpp +++ b/src/gl/scene/gl_sprite.cpp @@ -819,7 +819,10 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal) // [ZZ] add direct picnum override if (isPicnumOverride) { - patch = thing->picnum; + // Animate picnum overrides. + auto tex = TexMan(thing->picnum); + if (tex == nullptr) return; + patch = tex->id; mirror = false; } else