소스 검색

MXE compile fix

Ivan Savenko 2 년 전
부모
커밋
c6d39da53e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      client/gui/CursorHandler.cpp

+ 2 - 2
client/gui/CursorHandler.cpp

@@ -171,7 +171,7 @@ Point CursorHandler::getPivotOffsetMap(size_t index)
 		{ 20, 20}, // SCUTTLE_BOAT     = 42
 	}};
 
-	static_assert (offsets.size() == size_t(Cursor::Map::COUNT), "Invalid number of pivot offsets for cursor" );
+	assert(offsets.size() == size_t(Cursor::Map::COUNT)); //Invalid number of pivot offsets for cursor
 	assert(index < offsets.size());
 	return offsets[index];
 }
@@ -201,7 +201,7 @@ Point CursorHandler::getPivotOffsetCombat(size_t index)
 		{ 14, 20 }, // TELEPORT       = 19
 	}};
 
-	static_assert (offsets.size() == size_t(Cursor::Combat::COUNT), "Invalid number of pivot offsets for cursor" );
+	assert(offsets.size() == size_t(Cursor::Combat::COUNT)); //Invalid number of pivot offsets for cursor
 	assert(index < offsets.size());
 	return offsets[index];
 }