Skip to content

Commit

Permalink
clear entries first
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 committed Feb 10, 2021
1 parent 00a4f5d commit 2a8fc54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/main/gui/panels/GUI_FrictionSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ bool FrictionSettings::GmComboItemGetter(void* data, int idx, const char** out_t

void FrictionSettings::AnalyzeTerrain()
{
m_gm_entries.clear();
auto itor = App::GetSimTerrain()->GetCollisions()->getGroundModels()->begin();
auto endi = App::GetSimTerrain()->GetCollisions()->getGroundModels()->end();
for (; itor != endi; ++itor)
Expand Down

0 comments on commit 2a8fc54

Please # to comment.