summaryrefslogtreecommitdiff
path: root/battleNetApi/src/hearthstoneTokenBuilder.cpp
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-07-31 05:35:41 +0200
committerAotrix <[email protected]>2026-07-31 05:35:41 +0200
commitffca1f4b70c461d249809e61f4e1def34e32755d (patch)
tree19521c8c51ef0fc889f37a82a6412368f8d00c71 /battleNetApi/src/hearthstoneTokenBuilder.cpp
parent06fc106f8aeaf0de5b705085ab8262a388402ee5 (diff)
Add card name and id to window
Diffstat (limited to 'battleNetApi/src/hearthstoneTokenBuilder.cpp')
-rw-r--r--battleNetApi/src/hearthstoneTokenBuilder.cpp2
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) {