fixed counting from -1 in batsAfraid (not sure why it was like that?)

This commit is contained in:
Zeno Rogue 2020-12-25 06:06:43 +01:00
parent f664e8fbce
commit f2e9b371ff
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ EX bool wantsToStay(eMonster m) {
EX bool batsAfraid(cell *c) {
// bats
for(int i=-1; i<isize(targets); i++)
for(int i=0; i<isize(targets); i++)
if(c == targets[i] || isNeighbor(c, targets[i])) {
if(!targets[i]->monst && invismove) continue;
bool enear = false;