X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIBase.cxx;h=d143296a18f04b8f931701721924fb4bf5634fd8;hb=bb2d1f55e9912d3b9b81b6d5e12900f77eef4365;hp=8c5532db1131be92a5c3eb0033b063473f03f844;hpb=a6db6d89ff41a619569e6433409e8bf62ff98499;p=flightgear.git diff --git a/src/AIModel/AIBase.cxx b/src/AIModel/AIBase.cxx index 8c5532db1..d143296a1 100644 --- a/src/AIModel/AIBase.cxx +++ b/src/AIModel/AIBase.cxx @@ -81,6 +81,8 @@ FGAIBase::FGAIBase(object_type ot) : delete_me = false; _impact_reported = false; _collision_reported = false; + _expiry_reported = false; + _subID = 0; _x_offset = 0; @@ -226,7 +228,7 @@ void FGAIBase::initModel(osg::Node *node) { if (model.valid()) { - fgSetString("/ai/models/model-added", props->getPath()); + fgSetString("/ai/models/model-added", props->getPath().c_str()); } else if (!model_path.empty()) { SG_LOG(SG_INPUT, SG_WARN, "AIBase: Could not load model " << model_path); @@ -579,6 +581,10 @@ bool FGAIBase::_getCollisionData() { return _collision_reported; } +bool FGAIBase::_getExpiryData() { + return _expiry_reported; +} + bool FGAIBase::_getImpactData() { return _impact_reported; }