fixed a crash bug with Bulls pushing things offscreen

This commit is contained in:
Zeno Rogue 2019-06-25 09:55:25 +02:00
parent e6efc8fabc
commit eb4156fe29
1 changed files with 1 additions and 1 deletions

View File

@ -4076,7 +4076,7 @@ void determinizeBull(cell *c, int *posdir, int& nc) {
// use the previous PC's positions as the tiebreaker
for(int k=0; k<SHSIZE && nc>1; k++) {
int pts[MAX_EDGE];
for(int d=0; d<nc; d++) pts[d] = totalbulldistance(c->move(posdir[d]), k);
for(int d=0; d<nc; d++) pts[d] = totalbulldistance(c->cmove(posdir[d]), k);
int bestpts = 1000;
for(int d=0; d<nc; d++) if(pts[d] < bestpts) bestpts = pts[d];