[atlantik-cvs] CVS: kdegames/atlantik/libatlantic trade.cpp,1.17,1.18

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/libatlantic
In directory office:/tmp/cvs-serv1507/libatlantic

Modified Files:
	trade.cpp 
Log Message:
bugfix: don't crash when removing money from a trade

Index: trade.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/trade.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- trade.cpp	14 Jul 2002 10:53:22 -0000	1.17
+++ trade.cpp	23 Dec 2002 01:56:48 -0000	1.18
@@ -74,9 +74,8 @@
 		}
 		else
 		{
-			delete t;
 			mTradeItems.removeRef(t);
-			emit itemRemoved(t);
+			emit itemRemoved(t); // GUI deletes item
 		}
 	}
 	else if (estate && to)
@@ -115,9 +114,8 @@
 		}
 		else
 		{
-			delete t;
 			mTradeItems.removeRef(t);
-			emit itemRemoved(t);
+			emit itemRemoved(t); // GUI deletes item
 		}
 	}
 	else if (from && to && money)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.