فهرست منبع

Fix Linux Debug build

stelth 12 سال پیش
والد
کامیت
4fbc6242b5
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)
         {
         {