diff options
| author | Aotrix <[email protected]> | 2026-07-31 05:35:41 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-07-31 05:35:41 +0200 |
| commit | ffca1f4b70c461d249809e61f4e1def34e32755d (patch) | |
| tree | 19521c8c51ef0fc889f37a82a6412368f8d00c71 /battleNetApi | |
| parent | 06fc106f8aeaf0de5b705085ab8262a388402ee5 (diff) | |
Add card name and id to window
Diffstat (limited to 'battleNetApi')
| -rw-r--r-- | battleNetApi/src/hearthstoneTokenBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/battleNetApi/src/hearthstoneTokenBuilder.cpp b/battleNetApi/src/hearthstoneTokenBuilder.cpp index 96e3aa8..6307ba5 100644 --- a/battleNetApi/src/hearthstoneTokenBuilder.cpp +++ b/battleNetApi/src/hearthstoneTokenBuilder.cpp @@ -61,7 +61,7 @@ bool HearthstoneTokenBuilder::isTokenValid(const json &iTokenJson) const { not iTokenJson["Token"].contains("Content")) { return false; } - if (iTokenJson["Token"]["Content"].dump().length() < kTOKEN_CONTENT_MIN_LENGTH) { + if (iTokenJson["Token"]["Content"].get<std::string>().length() < kTOKEN_CONTENT_MIN_LENGTH) { return false; } if (_allowExpiredToken) { |
