--- 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);
}