Skip to content

Commit

Permalink
clean last spawned actor on terrain load
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 committed Oct 13, 2021
1 parent 920a99a commit 9f668fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/main/GameContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Message GameContext::PopMessage()

bool GameContext::LoadTerrain(std::string const& filename_part)
{
m_last_spawned_actor = nullptr;

// Find terrain in modcache
CacheEntry* terrn_entry = App::GetCacheSystem()->FindEntryByFilename(LT_Terrain, /*partial=*/true, filename_part);
if (!terrn_entry)
Expand Down

0 comments on commit 9f668fe

Please # to comment.