From 8128d027c0b620da09592323618c73e053a3e8a5 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 20 Dec 2018 12:53:59 +0000 Subject: [PATCH] Fix wrong return value in scope_dumper::TileInfo --- src/scope_info.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scope_info.cpp b/src/scope_info.cpp index 5bbc7aa85e..4b6c877440 100644 --- a/src/scope_info.cpp +++ b/src/scope_info.cpp @@ -120,5 +120,6 @@ const char *scope_dumper::StationInfo(const BaseStation *st) const char *scope_dumper::TileInfo(TileIndex tile) { - return DumpTileInfo(this->buffer, lastof(this->buffer), tile); + DumpTileInfo(this->buffer, lastof(this->buffer), tile); + return this->buffer; }