[atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.79,1.80

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

Modified Files:
	atlantik_network.cpp 
Log Message:
fix http://bugs.kde.org/show_bug.cgi?id=52529

Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- atlantik_network.cpp	6 Jan 2003 11:37:06 -0000	1.79
+++ atlantik_network.cpp	9 Jan 2003 00:02:31 -0000	1.80
@@ -533,7 +533,9 @@
 					
 					Estate *estate = 0;
 					bool b_newEstate = false;
-					if (!(estate = m_atlanticCore->findEstate(a.value().toInt())))
+
+					// FIXME: allow any estateId, GUI should not use it to determin its geometry
+					if (estateId >= 0 && estateId < 100 && !(estate = m_atlanticCore->findEstate(a.value().toInt())))
 					{
 						// Create estate object
 						estate = m_atlanticCore->newEstate(estateId);
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.