Fix check that was precisely backwards. Caught by unit tests!

This commit is contained in:
baldurk
2018-01-26 00:06:53 +00:00
parent 64dd86c332
commit 9c247a87ae
+1 -1
View File
@@ -639,7 +639,7 @@ public:
SerialiserFlags flags = SerialiserFlags::NoFlags)
{
std::string str;
if(IsReading())
if(IsWriting())
str = el;
Serialise(name, str, flags);
if(str.length() >= N)