mirror of https://github.com/OpenTTD/OpenTTD
Codefix f481c9fc: Incorrect references to previous items in DumpTarget
parent
14b986609b
commit
d53b681cf7
|
@ -156,7 +156,7 @@ struct DumpTarget {
|
||||||
std::string known_as;
|
std::string known_as;
|
||||||
if (FindKnownName(type_id, s, known_as)) {
|
if (FindKnownName(type_id, s, known_as)) {
|
||||||
/* We already know this one, no need to dump it. */
|
/* We already know this one, no need to dump it. */
|
||||||
std::string known_as_str = std::string("known_as.") + name;
|
std::string known_as_str = std::string("known_as.") + known_as;
|
||||||
WriteValue(name, known_as_str);
|
WriteValue(name, known_as_str);
|
||||||
} else {
|
} else {
|
||||||
/* Still unknown, dump it */
|
/* Still unknown, dump it */
|
||||||
|
@ -179,7 +179,7 @@ struct DumpTarget {
|
||||||
std::string known_as;
|
std::string known_as;
|
||||||
if (FindKnownName(type_id, s, known_as)) {
|
if (FindKnownName(type_id, s, known_as)) {
|
||||||
/* We already know this one, no need to dump it. */
|
/* We already know this one, no need to dump it. */
|
||||||
std::string known_as_str = std::string("known_as.") + name;
|
std::string known_as_str = std::string("known_as.") + known_as;
|
||||||
WriteValue(name, known_as_str);
|
WriteValue(name, known_as_str);
|
||||||
} else {
|
} else {
|
||||||
/* Still unknown, dump it */
|
/* Still unknown, dump it */
|
||||||
|
|
Loading…
Reference in New Issue