From ab8382c0db353d9d1ba6b7a9690d56aa2415258c Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 12 Jan 2008 19:58:06 +0000 Subject: (svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is no limit to the amount of names. -Fix: NewGRF engines could not be renamed. --- src/station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/station.cpp') diff --git a/src/station.cpp b/src/station.cpp index 404be9bba..2581803e8 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -61,7 +61,7 @@ Station::~Station() { DEBUG(station, cDebugCtorLevel, "I-%3d", index); - DeleteName(this->string_id); + free(this->name); free(this->speclist); if (CleaningPool()) return; -- cgit v1.2.3-54-g00ecf