(svn r14345) -Fix: delete the RenameSignWindow when 'its' sign is deleted

Also, it makes sure the RenameSignWindow isn't open when there are no signs (and crashes associted with that)
This commit is contained in:
smatz
2008-09-16 19:05:38 +00:00
parent cb16b68474
commit b5fe06f430
3 changed files with 15 additions and 2 deletions

View File

@@ -36,6 +36,10 @@ Sign::Sign(PlayerID owner)
Sign::~Sign()
{
free(this->name);
if (CleaningPool()) return;
DeleteRenameSignWindow(this->index);
this->owner = INVALID_PLAYER;
}