diff --git a/src/strings.cpp b/src/strings.cpp --- a/src/strings.cpp +++ b/src/strings.cpp @@ -824,7 +824,7 @@ static char* FormatString(char* buff, co const Town* t = GetTown(GetInt32(&argv)); int64 temp[1]; - assert(IsValidTown(t)); + assert(t->IsValid()); temp[0] = t->townnameparts; uint32 grfid = t->townnamegrfid;