mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 01:29:10 +00:00
Codefix f481c9fc
: Incorrect references to previous items in DumpTarget
This commit is contained in:
committed by
rubidium42
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 */
|
||||||
|
Reference in New Issue
Block a user