From 060bddb922c7933f1970828b7fcf3e3a4122d5c8 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sat, 11 Aug 2012 22:11:08 +0200 Subject: [PATCH] same +1 offset in LOAD_V as STOREP fixed --- execloop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2