Skip to content

Commit

Permalink
Merge pull request #36342 from Qrox/fix-debug-mapgen-error
Browse files Browse the repository at this point in the history
Fix debug message and crash in debug mapgen preview
  • Loading branch information
ZhilkinSerg authored Dec 22, 2019
2 parents ef6b43d + 00752da commit fdee8ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/editmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1949,8 +1949,9 @@ void editmap::edit_mapgen()
*/
void editmap::cleartmpmap( tinymap &tmpmap )
{
for( auto &smap : tmpmap.grid ) {
for( submap *&smap : tmpmap.grid ) {
delete smap;
smap = nullptr;
}

auto &ch = tmpmap.get_cache( target.z );
Expand Down

0 comments on commit fdee8ef

Please sign in to comment.