[SUPPORT] Advanced Turn Based Tile Toolkit

Either your step for removing or re-adding the units to the grid has to be incorrect. How are you doing each of these? For removing you should be able to simply remove the keys corresponding to each unit’s GridIndex variable from the GridUnits TMap in BP_GridManager. To re-add you would need to calculate which grid index corresponds to each unit’s new location. You can convert a location to a grid index using the ConvertLocationToIndex3D in BP_GridManager. Do this for the location of each unit and add a reference to that unit for the corresponding key in GridUnits.