#include "Airports/runways.hxx"
#include "Airports/simple.hxx"
+#ifndef _MSC_VER
+# include "Include/version.h"
+#endif
#include "Main/fg_props.hxx"
#include "Main/globals.hxx"
#include "instrument_mgr.hxx"
void
MK_VIII::PropertiesHandler::unbind ()
{
- vector<SGPropertyNode *>::iterator iter;
+ vector<SGPropertyNode_ptr>::iterator iter;
for (iter = tied_properties.begin(); iter != tied_properties.end(); iter++)
(*iter)->untie();
std::ostringstream refname;
refname << mk->name << "[" << mk->num << "]" << "/" << name;
- SGSoundSample *sample = globals->get_soundmgr()->find(refname.str());
+ SGSoundMgr *soundmgr = globals->get_soundmgr();
+ if (soundmgr->is_working() == false)
+ {
+ return NULL;
+ }
+
+ SGSoundSample *sample = soundmgr->find(refname.str());
if (! sample)
{
SGPath sample_path(globals->get_fg_root());
exit(1);
}
- globals->get_soundmgr()->add(sample, refname.str());
+ soundmgr->add(sample, refname.str());
samples[refname.str()] = sample;
}