From a0a2c4b46515c31208e4ecaeef04a629ad6aff44 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Thu, 26 Oct 2023 02:34:47 -0300 Subject: [PATCH] fix: value directly --- src/items/functions/item/custom_attribute.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/items/functions/item/custom_attribute.cpp b/src/items/functions/item/custom_attribute.cpp index 7282e25fa50..f7cfa925eac 100644 --- a/src/items/functions/item/custom_attribute.cpp +++ b/src/items/functions/item/custom_attribute.cpp @@ -118,7 +118,7 @@ bool CustomAttribute::unserialize(PropStream &propStream, const std::string &fun g_logger().error("[{}] failed to read string, call function: {}", __FUNCTION__, function); return false; } - setValue(readString); + value = readString; break; } case 2: { @@ -127,7 +127,7 @@ bool CustomAttribute::unserialize(PropStream &propStream, const std::string &fun g_logger().error("[{}] failed to read int64, call function: {}", __FUNCTION__, function); return false; } - setValue(readInt); + value = readInt; break; } case 3: { @@ -136,7 +136,7 @@ bool CustomAttribute::unserialize(PropStream &propStream, const std::string &fun g_logger().error("[{}] failed to read double, call function: {}", __FUNCTION__, function); return false; } - setValue(readDouble); + value = readDouble; break; } case 4: { @@ -145,7 +145,7 @@ bool CustomAttribute::unserialize(PropStream &propStream, const std::string &fun g_logger().error("[{}] failed to read boolean, call function: {}", __FUNCTION__, function); return false; } - setValue(readBoolean); + value = readBoolean; break; } default: