prevent out-of-bounds read.

This commit is contained in:
Enno Rehling 2018-05-06 16:35:23 +02:00
parent 088747ea81
commit 5af775ba87

View file

@ -1943,7 +1943,9 @@ static spellparameter *add_spellparameter(region * target_r, unit * u,
break; break;
case 'r': case 'r':
/* Parameter sind zwei Regionskoordinaten innerhalb der "normalen" Plane */ /* Parameter sind zwei Regionskoordinaten innerhalb der "normalen" Plane */
if (i + 1 < size) {
j = addparam_region(param + i, &spobj, u, ord); j = addparam_region(param + i, &spobj, u, ord);
}
++c; ++c;
break; break;
case 'b': case 'b':