Parcourir la source

Merge pull request #1040 from stelth/master

Fix Linux debug build.
Sean Paul Taylor il y a 12 ans
Parent
commit
4005b2e09f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      gameplay/src/PlatformLinux.cpp

+ 1 - 1
gameplay/src/PlatformLinux.cpp

@@ -923,7 +923,7 @@ namespace gameplay
 
     const GamepadInfoEntry& getGamepadMappedInfo(const GamepadHandle handle)
     {
-        GP_ASSERT(pad);
+        GP_ASSERT(handle >= 0);
 
         for(list<ConnectedGamepadDevInfo>::iterator it = __connectedGamepads.begin(); it != __connectedGamepads.end();++it)
         {