diff --git a/include/ehs/Serializer.h b/include/ehs/Serializer.h index 78b6658..3de251c 100644 --- a/include/ehs/Serializer.h +++ b/include/ehs/Serializer.h @@ -396,9 +396,11 @@ namespace ehs } template - void WriteStr(const T* str, const bool sizeKnown, N inSize = 0) + void WriteStr(const T* str, N inSize = 0) { - if (!inSize) + bool sizeKnown = inSize; + + if (!sizeKnown) while (str[inSize]) inSize++;