FGAIEntity::~FGAIEntity() {
//cout << "FGAIEntity dtor called..." << endl;
- _model->deRef(); // Ought to check valid?
+ ssgDeRefDelete(_model); // Ought to check valid?
//cout << "Removing model from scene graph..." << endl;
globals->get_scenery()->get_scene_graph()->removeKid(_aip.getSceneGraph());
// Unregister that one at the scenery manager
void FGAIEntity::Update(double dt) {
}
-string FGAIEntity::GetCallsign() {
- return("");
+const string &FGAIEntity::GetCallsign() {
+ static string s = "";
+ return(s);
}
void FGAIEntity::RegisterTransmission(int code) {