From f05b5163f7f31436e2b4d211836dedf5e814c773 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 5 Jun 2022 16:09:50 +0100 Subject: [PATCH] Fix narrowing converison warning --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 255a8c1376..8b96636721 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -6462,7 +6462,7 @@ static void OptimiseVarAction2DeterministicSpriteGroupSimplifyStores(Determinist DeterministicSpriteGroupAdjust &adjust = group->adjusts[i]; if (adjust.type == DSGA_TYPE_NONE && adjust.operation == DSGA_OP_RST && adjust.variable != 0x7E) { - src_adjust = i; + src_adjust = (int)i; is_constant = (adjust.variable == 0x1A); continue; }