Fixed: GetVarAddrType() bounds check was inverted

This commit is contained in:
Randy Heit 2016-03-06 22:17:30 -06:00
parent 13a7507c4d
commit 72edd7d455

View file

@ -4546,7 +4546,7 @@ bool GetVarAddrType(AActor *self, FName varname, int index, void *&addr, PType *
// unwrap contained type // unwrap contained type
type = arraytype->ElementType; type = arraytype->ElementType;
// offset by index (if in bounds) // offset by index (if in bounds)
if ((unsigned)index < arraytype->ElementCount) if ((unsigned)index >= arraytype->ElementCount)
{ // out of bounds { // out of bounds
return false; return false;
} }