]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
same +1 offset in LOAD_V as STOREP fixed
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 11 Aug 2012 20:11:08 +0000 (22:11 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 11 Aug 2012 20:11:08 +0000 (22:11 +0200)
execloop.h

index 6ccfad46c20492b5f18d44023445503b9272d594..b75061e50b4633637e8d068c3c8a08305b7798e3 100644 (file)
                                        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;