Browse Source

Merge pull request #1040 from stelth/master

Fix Linux debug build.
Sean Paul Taylor 12 years ago
parent
commit
4005b2e09f
1 changed files with 1 additions and 1 deletions
  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)
         {