@@ -73,8 +73,9 @@ |
||
| 73 | 73 | /** @var Place $current */ |
| 74 | 74 | $current = array_shift($frontier); |
| 75 | 75 | |
| 76 | - if( $current->getCurrentWeight() > $this->precision ) |
|
| 77 | - continue; |
|
| 76 | + if( $current->getCurrentWeight() > $this->precision ) { |
|
| 77 | + continue; |
|
| 78 | + } |
|
| 78 | 79 | |
| 79 | 80 | if ( is_callable( $this->onWalk ) ) { |
| 80 | 81 | call_user_func($this->onWalk, $current); |