From 049bd41efe42ce4a41e4aba235e56485cacb1730 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 2 Oct 2023 18:54:12 +0200 Subject: [PATCH] fixed warning --- source/games/exhumed/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)