1
0
Fork 0

Fix #9402, 2e136285: Crash when founding town using default name (#9403)

pull/9191/head
Loïc Guilloux 2021-06-27 17:18:21 +02:00 committed by GitHub
parent da7621cc55
commit 87eb0e4fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1151,7 +1151,7 @@ public:
void ExecuteFoundTownCommand(TileIndex tile, bool random, StringID errstr, CommandCallback cc)
{
const char *name = nullptr;
std::string name;
if (!this->townnamevalid) {
name = this->townname_editbox.text.buf;