src/ai/api/ai_testmode.cpp
branchnoai
changeset 11007 d57c2e53679b
parent 10339 ce6cd68d9eb8
--- a/src/ai/api/ai_testmode.cpp	Tue Jun 17 23:16:33 2008 +0000
+++ b/src/ai/api/ai_testmode.cpp	Wed Jun 18 10:58:16 2008 +0000
@@ -21,5 +21,6 @@
 
 AITestMode::~AITestMode()
 {
+	assert(this->GetDoCommandModeInstance() == this);
 	this->SetDoCommandMode(this->last_mode, this->last_instance);
 }