diff --git a/source/games/exhumed/src/player.cpp b/source/games/exhumed/src/player.cpp index cc582dbe5..44b364660 100644 --- a/source/games/exhumed/src/player.cpp +++ b/source/games/exhumed/src/player.cpp @@ -2238,7 +2238,7 @@ DEFINE_ACTION_FUNCTION(_ExhumedPlayer, IsUnderwater) { PARAM_SELF_STRUCT_PROLOGUE(ExhumedPlayer); auto nLocalPlayer = self - (ExhumedPlayer*)PlayerArray; - ACTION_RETURN_BOOL(getPlayer(nLocalPlayer)->pPlayerViewSect->Flag & kSectUnderwater); + ACTION_RETURN_BOOL(getPlayer((int)nLocalPlayer)->pPlayerViewSect->Flag & kSectUnderwater); } DEFINE_ACTION_FUNCTION(_ExhumedPlayer, GetAngle)