From 2faaef7a22e89d51b9725c84380185fe1ffbd353 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Tue, 13 Oct 2015 11:21:47 -0500 Subject: [PATCH] fix unused var --- .../VChatAPI/utils2.0/utils/Base/serializeTemplates.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/external/3rd/library/soePlatform/VChatAPI/utils2.0/utils/Base/serializeTemplates.h b/external/3rd/library/soePlatform/VChatAPI/utils2.0/utils/Base/serializeTemplates.h index 4af421bb..c2f745ed 100644 --- a/external/3rd/library/soePlatform/VChatAPI/utils2.0/utils/Base/serializeTemplates.h +++ b/external/3rd/library/soePlatform/VChatAPI/utils2.0/utils/Base/serializeTemplates.h @@ -719,9 +719,10 @@ namespace soe int ClassScribe::Print(char * stream, unsigned size, const ClassType & data, unsigned maxDepth) const { int bytesTotal = 0; - int bytes = 0; #ifdef PRINTABLE_MESSAGES + int bytes = 0; + if (maxDepth == 0) { bytes = snprintf(stream, size, "%s{mMembers(%u)}", ClassName(), mMemberScribes.size()); return bytes;