From e4f42ccda589595367bd89ba86d907b97e17a5ad Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 28 Oct 2004 14:46:15 +0000 Subject: [PATCH] changed assertion Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2044 --- src/gui/sdl_mapper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/sdl_mapper.cpp b/src/gui/sdl_mapper.cpp index af3f10d8..54058f74 100644 --- a/src/gui/sdl_mapper.cpp +++ b/src/gui/sdl_mapper.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: sdl_mapper.cpp,v 1.9 2004-10-02 11:23:07 qbix79 Exp $ */ +/* $Id: sdl_mapper.cpp,v 1.10 2004-10-28 14:46:15 qbix79 Exp $ */ #define OLD_JOYSTICK 1 @@ -335,7 +335,8 @@ public: CStickBindGroup(Bitu _stick) : CBindGroup (){ stick=_stick; sprintf(configname,"stick_%d",stick); - assert(sdl_joystick=SDL_JoystickOpen(stick)); + sdl_joystick=SDL_JoystickOpen(stick); + assert(sdl_joystick); axes=SDL_JoystickNumAxes(sdl_joystick); buttons=SDL_JoystickNumButtons(sdl_joystick); hats=SDL_JoystickNumHats(sdl_joystick);