From db374f600c319f0d230cf5f84e120ea06b5fa41e Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 2 Aug 2007 21:05:54 +0000 Subject: (svn r10755) -Codechange: make the town struct use the pool item class as super class. --- src/misc_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc_gui.cpp') diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index e5d728025..21cd4dd90 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -134,7 +134,7 @@ static void Place_LandInfo(TileIndex tile) 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); } -- cgit v1.2.3-54-g00ecf