From 18b11e889a76f07045bf883d3f122a1ca12d0b03 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 27 Apr 2009 17:11:26 +0000 Subject: [PATCH] Fix crash Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3369 --- src/hardware/gus.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/hardware/gus.cpp b/src/hardware/gus.cpp index 325f47e1..34ecc28a 100644 --- a/src/hardware/gus.cpp +++ b/src/hardware/gus.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: gus.cpp,v 1.35 2009-04-26 10:36:16 harekiet Exp $ */ +/* $Id: gus.cpp,v 1.36 2009-04-27 17:11:26 qbix79 Exp $ */ #include #include @@ -89,7 +89,6 @@ struct GFGus { Bit8u irq1; Bit8u irq2; - std::string ultradir; bool irqenabled; bool ChangeIRQDMA; // IRQ status register values @@ -802,8 +801,6 @@ public: myGUS.irq1 = (Bit8u)irq_val; myGUS.irq2 = (Bit8u)irq_val; - myGUS.ultradir = section->Get_string("ultradir"); - // We'll leave the MIDI interface to the MPU-401 // Ditto for the Joystick // GF1 Synthesizer @@ -857,7 +854,7 @@ public: << (Bitu)myGUS.irq1 << "," << (Bitu)myGUS.irq2 << ends; // Create autoexec.bat lines autoexecline[0].Install(temp.str()); - autoexecline[1].Install(std::string("SET ULTRADIR=")+ myGUS.ultradir); + autoexecline[1].Install(std::string("SET ULTRADIR=") + section->Get_string("ultradir")); }