]> git.mxchange.org Git - flightgear.git/commit
Fix a bug for allowed paths
authorTorsten Dreyer <torsten@t3r.de>
Tue, 12 Jan 2016 10:19:26 +0000 (11:19 +0100)
committerTorsten Dreyer <torsten@t3r.de>
Tue, 12 Jan 2016 10:19:26 +0000 (11:19 +0100)
commit296849cf3d85d720e4c921b5a58a3595be7bbca0
tree97da12b86ab58b0df0e700a5fd939a075ccc42d0
parent0250d2ee5b28c0e414955d7a1c06d6c7a37d88ce
Fix a bug for allowed paths

Under some conditions on my system
aircraft_paths.begin() was equal to scenery_paths.end()
This resulted in neither of them being added to read_allowed_paths
followed by failure to load Nasal scripts from the aircraft directory.

This might happen, if scenery_paths gets allocated just before aircraft_paths
in memory.
Better loop across the desired lists instead of using fancy tricks with
the iterator.
src/Main/util.cxx