1
0
Fork 0
flightgear/src
Julian Smith 380ecdf8ba src/Viewer/viewmgr.*: added asserts, diagnostics and checking for out-of-range view numbers.
It seems that some aircraft sometimes incorrectly pass view indices rather
than numbers resulting in out-of-range access to FGViewMgr::views[]; See
flightgear-devel thread with subject "View crash (after loading errors)".

With this commit, if we are given an incorrect view number, we output a
diagnostic with SG_ALERT, assert fail, and cope with the problem. Arguably we
could do something more serious such as opening a popup or throw an exception.
2021-01-01 17:54:10 +00:00
..
Add-ons Cmake: Remove version.h machinery 2020-08-24 15:04:24 +01:00
AIModel Traffic: add a trivial test of createPushback 2020-12-21 13:25:15 +00:00
Aircraft src/Aircraft/replay.cxx:loadTape(): use specified path if it ends with .fgtape. 2020-10-31 17:23:28 +00:00
Airports src/Airports/runwayprefs.cxx: avoid signed/unsigned comparison warning. 2021-01-01 17:54:10 +00:00
ATC src/ATC/trafficcontrol.hxx: fixed warning about const return value with no affect. 2020-11-01 00:03:03 +00:00
Autopilot src/Autopilot/digitalcomponent.cxx: fixed misleading indentation. 2021-01-01 17:54:10 +00:00
Canvas src/Canvas/canvas_mgr.cxx: fix for segv in simgear unit tests. 2020-12-16 21:19:01 +00:00
Cockpit Fix for missing 2D panel 2020-10-29 16:24:53 +00:00
EmbeddedResources CMake: overhaul how we find 3rd-party files 2020-08-26 13:57:24 +01:00
Environment Why on earth didn't the compiler get this error? 2020-12-08 09:55:53 +01:00
FDM src/FDM/JSBSim/input_output/FGfdmSocket.cpp: avoid warning about zero initialisation. 2021-01-01 17:54:10 +00:00
GUI Launcher: don’t set empty METAR 2020-12-30 17:01:29 +00:00
Include Make Compositor default 2020-11-16 13:25:29 +01:00
Input Added limited support for event handling to extra view windows. 2020-12-21 23:42:44 +00:00
Instrumentation Fix a GPS bug identified by Jonathan Redpath 2020-12-14 21:04:50 +00:00
Main Improved error indication from FGIO::parse_port_config() and FGIO::add_channel(). 2021-01-01 17:54:10 +00:00
Model src/Model/modelmgr.cxx: fixed minor clang warning about indentation. 2020-12-12 14:09:39 +00:00
MultiPlayer Correct any positive value of user and multiplayer chase-distance-m. 2020-12-05 21:29:01 +00:00
Navaids NavCache: add duplicate rebuild protection for Unixes 2020-12-22 10:34:58 +00:00
Network CompositeViewer: Support for multiple view windows using osgViewer::CompositeViewer. 2020-11-21 13:27:02 +00:00
Radio Fix shadowing of static variable in ITM adiff() function 2019-08-07 16:02:45 +02:00
Scenery Add graphics-presets logic (as a subsystem) 2020-11-30 15:45:13 +00:00
Scripting Store the region name of the material in the region parameter 2020-11-15 09:30:27 +01:00
Sound Be able to control atis speech pitch, volume and speed. 2020-11-01 09:29:20 +00:00
Systems Missed check for a readProperties file check 2020-11-12 09:35:19 +00:00
Time TimeManager: expose the speed=up factor nicely 2020-10-29 13:44:59 +00:00
Traffic Catch XML errors parsing traffic files 2020-10-25 20:14:10 +00:00
Viewer src/Viewer/viewmgr.*: added asserts, diagnostics and checking for out-of-range view numbers. 2021-01-01 17:54:10 +00:00
CMakeLists.txt Improve CMake strucutre 2020-08-23 11:31:37 +01:00