summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/base.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base.cpp b/src/base.cpp
index c268c7493..b007a1098 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -238,7 +238,7 @@ LocalStringExt::~LocalStringExt()
std::string LocalStringExt::serialize(SerializeFormat format, const Extensible* container, void* item) const
{
- if (item && format == FORMAT_USER)
+ if ((item) && (format != FORMAT_NETWORK))
return *static_cast<std::string*>(item);
return "";
}
@@ -254,7 +254,7 @@ LocalIntExt::~LocalIntExt()
std::string LocalIntExt::serialize(SerializeFormat format, const Extensible* container, void* item) const
{
- if (format != FORMAT_USER)
+ if (format == FORMAT_NETWORK)
return "";
return ConvToStr(reinterpret_cast<intptr_t>(item));
}