summaryrefslogtreecommitdiffstats
path: root/src/object/auto/autotower.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/auto/autotower.cpp')
-rw-r--r--src/object/auto/autotower.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/object/auto/autotower.cpp b/src/object/auto/autotower.cpp
index 17a41f4..329cab0 100644
--- a/src/object/auto/autotower.cpp
+++ b/src/object/auto/autotower.cpp
@@ -27,7 +27,6 @@
#include "script/cmdtoken.h"
#include "ui/interface.h"
-#include "ui/displaytext.h"
#include "ui/window.h"
#include "ui/gauge.h"
@@ -179,7 +178,7 @@ bool CAutoTower::EventProcess(const Event &event)
target = SearchTarget(m_targetPos);
if ( energy < ENERGY_FIRE )
{
- m_displayText->DisplayError(ERR_TOWER_ENERGY, m_object);
+ m_main->DisplayError(ERR_TOWER_ENERGY, m_object);
}
if ( target == 0 || energy < ENERGY_FIRE )
{