From: Wolfgang (Blub) Bumiller Date: Sat, 11 Aug 2012 20:11:08 +0000 (+0200) Subject: same +1 offset in LOAD_V as STOREP fixed X-Git-Tag: 0.1-rc1~349^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=060bddb922c7933f1970828b7fcf3e3a4122d5c8;p=xonotic%2Fgmqcc.git same +1 offset in LOAD_V as STOREP fixed --- diff --git a/execloop.h b/execloop.h index 6ccfad4..b75061e 100644 --- a/execloop.h +++ b/execloop.h @@ -271,7 +271,7 @@ PRVM_ERROR ("%s Progs attempted to read an out of bounds edict number", PRVM_NAME); goto cleanup; } - if (OPB->_int < 0 || OPB->_int + 3 >= prog->entityfields) + if (OPB->_int < 0 || OPB->_int + 3 > prog->entityfields) { PRVM_ERROR("%s attempted to read an invalid field in an edict (%i)", PRVM_NAME, OPB->_int); goto cleanup;