ソースを参照

Merge pull request #1041 from blackberry/master

Merged master to next
Sean Paul Taylor 12 年 前
コミット
83e23bd969
1 ファイル変更1 行追加1 行削除
  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)
     const GamepadInfoEntry& getGamepadMappedInfo(const GamepadHandle handle)
     {
     {
-        GP_ASSERT(pad);
+        GP_ASSERT(handle >= 0);
 
 
         for(list<ConnectedGamepadDevInfo>::iterator it = __connectedGamepads.begin(); it != __connectedGamepads.end();++it)
         for(list<ConnectedGamepadDevInfo>::iterator it = __connectedGamepads.begin(); it != __connectedGamepads.end();++it)
         {
         {