Skip to content

Commit

Permalink
-Werror=deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
MillhioreBT committed Apr 4, 2024
1 parent a090d02 commit b78c52a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ void Game::playerMoveItem(Player* player, const Position& fromPos, uint16_t spri
}

// hangable item specific code
const auto playerMoveHangableItem = [=](const Position& playerPos, const Position& mapFromPos,
const auto playerMoveHangableItem = [=, this](const Position& playerPos, const Position& mapFromPos,
const Tile* toCylinderTile, const Position& mapToPos) -> bool {
if (!item->isHangable() || !toCylinderTile->hasFlag(TILESTATE_SUPPORTS_HANGABLE)) {
return false;
Expand Down

0 comments on commit b78c52a

Please sign in to comment.