summaryrefslogtreecommitdiff
path: root/games/fgrun/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-11-18 18:29:01 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-11-19 01:10:58 -0600
commit83940e056e4dc987a0f61cf79bbc3316e0e5e3d7 (patch)
treed1327d6e5427cda4db246505c4b5afae0f1af8e7 /games/fgrun/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch
parentbcdc93d0d4cb91d7418c5c6c9654c733fc616c6f (diff)
downloadslackbuilds-83940e056e4dc987a0f61cf79bbc3316e0e5e3d7.tar.gz
games/fgrun: Updated for version 20131117_973f772.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/fgrun/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch')
-rw-r--r--games/fgrun/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/games/fgrun/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch b/games/fgrun/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch
new file mode 100644
index 0000000000..52b56d4055
--- /dev/null
+++ b/games/fgrun/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch
@@ -0,0 +1,18 @@
+--- fgrun-1.6.1/src/wizard_funcs.cxx.orig 2012-02-27 22:56:08.000000000 +0100
++++ fgrun-1.6.1/src/wizard_funcs.cxx 2012-03-21 21:00:52.072609457 +0100
+@@ -1200,7 +1200,6 @@ Wizard::~Wizard()
+ aircraft->clear();
+
+ delete logwin;
+- delete win;
+ delete adv;
+ }
+
+@@ -2265,7 +2264,6 @@ Wizard::reset_settings()
+ prefs.set( "time_of_day_value", "noon" );
+
+ aircraft->value( 0 );
+- preview->make_current();
+ preview->clear();
+ preview->redraw();
+