summaryrefslogtreecommitdiff
path: root/src/ai/ai_instance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/ai_instance.cpp')
-rw-r--r--src/ai/ai_instance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp
index 2edb7db42..6d264abea 100644
--- a/src/ai/ai_instance.cpp
+++ b/src/ai/ai_instance.cpp
@@ -272,7 +272,7 @@ void AIInstance::Died()
void AIInstance::GameLoop()
{
- if (this->is_dead) return;
+ if (this->IsDead()) return;
if (this->engine->HasScriptCrashed()) {
/* The script crashed during saving, kill it here. */
this->Died();
@@ -338,7 +338,7 @@ void AIInstance::GameLoop()
void AIInstance::CollectGarbage()
{
- if (this->is_started && !this->is_dead) this->engine->CollectGarbage();
+ if (this->is_started && !this->IsDead()) this->engine->CollectGarbage();
}
/* static */ void AIInstance::DoCommandReturn(AIInstance *instance)