From d76571babf4b19bef9db3aa430a440bf71037743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Panzenb=C3=B6ck?= Date: Sun, 16 Feb 2014 18:02:41 +0100 Subject: [PATCH] fix config file writing --- src/joypad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joypad.cpp b/src/joypad.cpp index 0f20fcb..6d00f36 100644 --- a/src/joypad.cpp +++ b/src/joypad.cpp @@ -177,7 +177,7 @@ bool JoyPad::readConfig( QTextStream &stream ) { //only actually writes something if this JoyPad is NON DEFAULT. void JoyPad::write( QTextStream &stream ) { if (!axes.empty() || !buttons.empty()) { - stream << "Joystick " << index << " {\n"; + stream << "Joystick " << (index+1) << " {\n"; foreach (Axis *axis, axes) { axis->write(stream); }