src/ini.cpp
changeset 10082 44931aeaa000
parent 10064 14763b82c4f4
--- a/src/ini.cpp	Sat Sep 06 12:54:11 2008 +0000
+++ b/src/ini.cpp	Sun Sep 07 08:51:26 2008 +0000
@@ -124,9 +124,10 @@
 
 	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;