From f0c6e32f05bfb978a27e27d6ca788500f7c88929 Mon Sep 17 00:00:00 2001 From: Shadooow Date: Sun, 20 Mar 2022 05:08:09 +0000 Subject: [PATCH] Fixed exploit allowing to duplicate drag able structures by opening/closing them during dragging. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9334 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- TileEngine/Interactive Tiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TileEngine/Interactive Tiles.cpp b/TileEngine/Interactive Tiles.cpp index 92330b82d..71a445e3e 100644 --- a/TileEngine/Interactive Tiles.cpp +++ b/TileEngine/Interactive Tiles.cpp @@ -319,7 +319,7 @@ void HandleStructChangeFromGridNo( SOLDIERTYPE *pSoldier, INT32 sGridNo ) - pNewStructure = SwapStructureForPartner( sGridNo, pStructure ); + pNewStructure = SwapStructureForPartnerAndStoreChangeInMap( sGridNo, pStructure ); if ( pNewStructure != NULL) { RecompileLocalMovementCosts( sGridNo );