mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +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)
|
void ShapeBaseImageData::handleStateSoundTrack(const U32& stateId)
|
||||||
{
|
{
|
||||||
if (stateId > MaxStates)
|
if (stateId >= MaxStates)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
StateData& s = state[stateId];
|
StateData& s = state[stateId];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue