Fixed segfault on program exit if joysticks have never been initialized.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2304 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2011-12-28 15:26:21 +00:00
parent 08c59e5882
commit 83114a9a6f
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ EventHandler::EventHandler(OSystem* osystem)
myAllowAllDirectionsFlag(false),
myFryingFlag(false),
mySkipMouseMotion(true),
myJoysticks(NULL),
myNumJoysticks(0)
{
// Create the event object which will be used for this handler