fixed crash in formula AI when self was referenced
This commit is contained in:
parent
fa7617b559
commit
4b503e4482
1 changed files with 3 additions and 1 deletions
|
@ -92,7 +92,9 @@ public:
|
|||
*/
|
||||
ai_interface(info& arg) : info_(arg), last_interact_(0), user_interact_("ai_user_interact"),
|
||||
unit_recruited_("ai_unit_recruited"), unit_moved_("ai_unit_moved"),
|
||||
enemy_attacked_("ai_enemy_attacked") {}
|
||||
enemy_attacked_("ai_enemy_attacked") {
|
||||
add_ref(); //this class shouldn't be reference counted.
|
||||
}
|
||||
virtual ~ai_interface() {}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue