diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ini.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ini.cpp b/src/ini.cpp index 61ac06289..dc3f452a5 100644 --- a/src/ini.cpp +++ b/src/ini.cpp @@ -124,9 +124,10 @@ void IniFile::RemoveGroup(const char *name) if (prev != NULL) { prev->next = prev->next->next; + if (this->last_group == &group->next) this->last_group = &prev->next; } else { this->group = this->group->next; - prev = this->group; + if (this->last_group == &group->next) this->last_group = &this->group; } group->next = NULL; |