From ed570697c0e0441393e80ba2c7d513fd06053c42 Mon Sep 17 00:00:00 2001 From: not_alphanine Date: Sun, 15 Sep 2024 00:24:29 +0300 Subject: [PATCH] Fixed TweakDBID::ToString() not giving human readable TDBID --- src/reverse/BasicTypes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reverse/BasicTypes.cpp b/src/reverse/BasicTypes.cpp index 38effda0..c4bf6e2c 100644 --- a/src/reverse/BasicTypes.cpp +++ b/src/reverse/BasicTypes.cpp @@ -79,7 +79,7 @@ std::string TweakDBID::AsString() const noexcept std::string TweakDBID::ToString() const noexcept { const auto resolved = CET::Get().GetVM().GetTDBIDString(value, true); - if (!resolved.empty()) + if (resolved.empty()) return fmt::format("ToTweakDBID{{ hash = 0x{:08X}, length = {:d} }}", name_hash, name_length); return fmt::format("ToTweakDBID{{ hash = 0x{:08X}, length = {:d} --[[ {} --]] }}", name_hash, name_length, resolved); }