mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
followup to array acess breaches: waterobject and guiparticlegraphctrl need to check >=, not just >
This commit is contained in:
parent
1f93e362cc
commit
6b2db37f8a
2 changed files with 24 additions and 24 deletions
|
|
@ -1120,7 +1120,7 @@ bool WaterObject::initMaterial( S32 idx )
|
|||
// We must return false for any case which it is NOT safe for the caller
|
||||
// to use the indexed material.
|
||||
|
||||
if ( idx < 0 || idx > NumMatTypes )
|
||||
if ( idx < 0 || idx >= NumMatTypes )
|
||||
return false;
|
||||
|
||||
BaseMatInstance *mat = mMatInstances[idx];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue