branch | noai |
changeset 11007 | d57c2e53679b |
parent 10339 | ce6cd68d9eb8 |
11002:3a11ba88eb7c | 11007:d57c2e53679b |
---|---|
19 this->SetDoCommandMode(&AIExecMode::ModeProc, this); |
19 this->SetDoCommandMode(&AIExecMode::ModeProc, this); |
20 } |
20 } |
21 |
21 |
22 AIExecMode::~AIExecMode() |
22 AIExecMode::~AIExecMode() |
23 { |
23 { |
24 assert(this->GetDoCommandModeInstance() == this); |
|
24 this->SetDoCommandMode(this->last_mode, this->last_instance); |
25 this->SetDoCommandMode(this->last_mode, this->last_instance); |
25 } |
26 } |