forked from github/server
CID 22513: Out-of-bounds read (OVERRUN)
This commit is contained in:
parent
1f45553cb5
commit
0da10ea490
1 changed files with 3 additions and 2 deletions
|
@ -571,11 +571,12 @@ static int sp_summon_familiar(castorder * co)
|
|||
region *rn = rconnect(r, dir);
|
||||
if (rn && fval(rn->terrain, SEA_REGION)) {
|
||||
dh++;
|
||||
if (dh == coasts)
|
||||
if (dh == coasts) {
|
||||
r = rconnect(r, dir);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
r = rconnect(r, dir);
|
||||
}
|
||||
|
||||
msg = msg_message("familiar_name", "unit", mage);
|
||||
|
|
Loading…
Reference in a new issue