From 9ba9a2d1f0555112356547ea6508e09dbc588c63 Mon Sep 17 00:00:00 2001 From: Surflurer <22912139+Surflurer@users.noreply.github.com> Date: Fri, 8 Mar 2024 22:47:54 +0800 Subject: [PATCH] set terrain memory cache to dirty when setting terrain --- src/map.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map.cpp b/src/map.cpp index ddad0ad934a73..1923dc75ece61 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -2261,6 +2261,7 @@ bool map::ter_set( const tripoint &p, const ter_id &new_terrain, bool avoid_crea invalidate_max_populated_zlev( p.z ); memory_cache_dec_set_dirty( p, true ); + memory_cache_ter_set_dirty( p, true ); avatar &player_character = get_avatar(); if( player_character.sees( p ) ) { player_character.memorize_clear_decoration( getglobal( p ), "t_" );