mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Fix potential index out of bounds
This commit is contained in:
parent
2efd5f0acd
commit
2e1cfe9332
1 changed files with 1 additions and 1 deletions
|
|
@ -576,7 +576,7 @@ bool ShapeBaseImageData::preload(bool server, String &errorStr)
|
|||
|
||||
void ShapeBaseImageData::handleStateSoundTrack(const U32& stateId)
|
||||
{
|
||||
if (stateId > MaxStates)
|
||||
if (stateId >= MaxStates)
|
||||
return;
|
||||
|
||||
StateData& s = state[stateId];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue