diff --git a/data/gfx/fire.xml b/data/gfx/fire.xml new file mode 100644 index 000000000..4f69ec46c --- /dev/null +++ b/data/gfx/fire.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/tracks/track.cpp b/src/tracks/track.cpp index d37da28c9..83510be88 100644 --- a/src/tracks/track.cpp +++ b/src/tracks/track.cpp @@ -843,6 +843,10 @@ void Track::loadTrackModel(World* parent, unsigned int mode_id) try { ParticleKind* kind = ParticleKindManager::get()->getParticles( path.c_str() ); + if (kind == NULL) + { + throw std::runtime_error(path + " could not be loaded"); + } ParticleEmitter* emitter = new ParticleEmitter( kind, emitter_origin ); m_all_emitters.push_back(emitter); }