diff --git a/src/SFML/Window/Unix/JoystickImpl.cpp b/src/SFML/Window/Unix/JoystickImpl.cpp index 3df329d70..1e6636f86 100644 --- a/src/SFML/Window/Unix/JoystickImpl.cpp +++ b/src/SFML/Window/Unix/JoystickImpl.cpp @@ -234,12 +234,12 @@ namespace // If not mapped before, map it now if (record == joystickList.end()) { - JoystickRecord nweRecord; - nweRecord.deviceNode = devnode; - nweRecord.systemPath = syspath; - nweRecord.plugged = true; + JoystickRecord newRecord; + newRecord.deviceNode = devnode; + newRecord.systemPath = syspath; + newRecord.plugged = true; - joystickList.push_back(nweRecord); + joystickList.push_back(newRecord); } }