Skip to content

Commit

Permalink
fix: value directly
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Oct 26, 2023
1 parent b7a1406 commit a0a2c4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/items/functions/item/custom_attribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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: {
Expand All @@ -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: {
Expand All @@ -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:
Expand Down

0 comments on commit a0a2c4b

Please sign in to comment.