2
0
Эх сурвалжийг харах

Fix potential index out of bounds

Johan Mattsson 2 жил өмнө
parent
commit
2e1cfe9332

+ 1 - 1
Engine/source/T3D/shapeImage.cpp

@@ -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];