]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fixing address check INSTR_STOREP_V in execloop - it kept us from writing to a vector...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 11 Aug 2012 19:17:49 +0000 (21:17 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 11 Aug 2012 19:17:49 +0000 (21:17 +0200)
execloop.h

index 2929c2d6a501d51d7a6f7246ee86540ab99cefd6..6ccfad46c20492b5f18d44023445503b9272d594 100644 (file)
                                ptr->_int = OPA->_int;
                                break;
                        case INSTR_STOREP_V:
-                               if (OPB->_int < 0 || OPB->_int + 3 >= prog->entitydata_count)
+                               if (OPB->_int < 0 || OPB->_int + 2 >= prog->entitydata_count)
                                {
                                        PRVM_ERROR("%s attempted to write to an out of bounds edict (%i)", PRVM_NAME, OPB->_int);
                                        goto cleanup;