Formatting is not correct here. The proper whitespaces would be:

```
if (!(sector && sector->isPointInSector(actor->getPos()))) {
```