diff options
Diffstat (limited to 'src/gui/windows/botcheckerwindow.cpp')
-rw-r--r-- | src/gui/windows/botcheckerwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/botcheckerwindow.cpp b/src/gui/windows/botcheckerwindow.cpp index 2ce0bce25..b502dd01d 100644 --- a/src/gui/windows/botcheckerwindow.cpp +++ b/src/gui/windows/botcheckerwindow.cpp @@ -27,7 +27,7 @@ #include "gui/widgets/label.h" #include "gui/widgets/guitable.h" -#include "actorspritemanager.h" +#include "actormanager.h" #include "configuration.h" #include "being/localplayer.h" @@ -100,10 +100,10 @@ public: freeWidgets(); mPlayers.clear(); - if (actorSpriteManager && botCheckerWindow + if (actorManager && botCheckerWindow && botCheckerWindow->mEnabled) { - std::set<ActorSprite*> beings = actorSpriteManager->getAll(); + std::set<ActorSprite*> beings = actorManager->getAll(); FOR_EACH (ActorSprites::iterator, i, beings) { Being *const being = dynamic_cast<Being*>(*i); @@ -389,9 +389,9 @@ void BotCheckerWindow::updateList() void BotCheckerWindow::reset() { - if (actorSpriteManager) + if (actorManager) { - std::set<ActorSprite*> beings = actorSpriteManager->getAll(); + std::set<ActorSprite*> beings = actorManager->getAll(); FOR_EACH (ActorSprites::iterator, i, beings) { Being *const being = dynamic_cast<Being*>(*i); |