mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
EMI: Don't allow setTex with out of range index
This commit is contained in:
@@ -88,7 +88,7 @@ EMIMeshFace::~EMIMeshFace() {
|
||||
}
|
||||
|
||||
void EMIModel::setTex(int index) {
|
||||
if (_mats[index])
|
||||
if (index < _numTextures && _mats[index])
|
||||
_mats[index]->select();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user