src/ai/api/ai_transactionmode.cpp
branchnoai
changeset 11007 d57c2e53679b
parent 9833 89a64246458f
--- a/src/ai/api/ai_transactionmode.cpp	Tue Jun 17 23:16:33 2008 +0000
+++ b/src/ai/api/ai_transactionmode.cpp	Wed Jun 18 10:58:16 2008 +0000
@@ -39,6 +39,7 @@
 
 AITransactionMode::~AITransactionMode()
 {
+	assert(this->GetDoCommandModeInstance() == this);
 	this->SetDoCommandMode(this->last_mode, this->last_instance);
 
 	/* Clean up the command_stack nicely (as in: free the cmd_text) */