]> git.mxchange.org Git - flightgear.git/commit
Fix a seg fault that could be caused if all no AI models were in existance. Ssg...
authordaveluff <daveluff>
Sun, 11 Apr 2004 15:20:36 +0000 (15:20 +0000)
committerdaveluff <daveluff>
Sun, 11 Apr 2004 15:20:36 +0000 (15:20 +0000)
commit7019fcdc15c20d5aea2f87587621d2117a890b5d
tree8121a57d8d065750dfae0c40663e1a566275b458
parentd27ba7f2d2f9c053079150dd08d0ebfdf4f20790
Fix a seg fault that could be caused if all no AI models were in existance.  Ssg could then free the memory pointed to by our pointer behind our back, causing it to crash when next approaching a controlled airport requiring an AI model.  Fix is to hold one ref to each model in the AIMgr at all times.
src/ATC/AIMgr.cxx