1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

MXE compile fix

This commit is contained in:
Ivan Savenko
2023-01-05 23:14:52 +02:00
parent 6985f2e050
commit c6d39da53e

View File

@@ -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];
}