diff src/misc_gui.cpp @ 7386:f9b4e970b14d draft

(svn r10755) -Codechange: make the town struct use the pool item class as super class.
author rubidium <rubidium@openttd.org>
date Thu, 02 Aug 2007 21:05:54 +0000
parents 694c7b595661
children 00a77145bf0c
line wrap: on
line diff
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -134,7 +134,7 @@
 	GetString(_landinfo_data[3], STR_LANDINFO_COORDS, lastof(_landinfo_data[3]));
 
 	SetDParam(0, STR_01A9_NONE);
-	if (t != NULL && IsValidTown(t)) {
+	if (t != NULL && t->IsValid()) {
 		SetDParam(0, STR_TOWN);
 		SetDParam(1, t->index);
 	}