mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
fixing address check INSTR_STOREP_V in execloop - it kept us from writing to a vector when it was the last declared entityfield
This commit is contained in:
parent
c31c59312b
commit
20831ddc6c
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue