mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Make sure to check if the sprite is valid
This commit is contained in:
parent
439e0718ce
commit
1d0b912f75
1 changed files with 4 additions and 0 deletions
|
@ -3126,6 +3126,10 @@ void R_AddSpriteSurfaces()
|
|||
tr.currentModel = tr.models[0];
|
||||
}
|
||||
|
||||
if (tr.currentModel->type != MOD_SPRITE) {
|
||||
continue;
|
||||
}
|
||||
|
||||
R_AdjustVisBoundsForSprite(&tr.refdef.sprites[tr.currentSpriteNum], &tr.viewParms, &tr.or );
|
||||
sprite->shaderNum = tr.currentModel->d.sprite->shader->sortedIndex;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue