From 5a1203963fc50139bfe4d7cab27fa32d1d6fc9dc Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 16 Sep 2008 19:05:38 +0000 Subject: (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) --- src/signs.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/signs.cpp') diff --git a/src/signs.cpp b/src/signs.cpp index a2d3141b5..a9827c015 100644 --- a/src/signs.cpp +++ b/src/signs.cpp @@ -36,6 +36,10 @@ Sign::Sign(PlayerID owner) Sign::~Sign() { free(this->name); + + if (CleaningPool()) return; + + DeleteRenameSignWindow(this->index); this->owner = INVALID_PLAYER; } -- cgit v1.2.3-54-g00ecf