From c8f2d56dd3bf2f3d09dce648d0364205948d07f3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 17 Jun 2007 20:43:21 +0000 Subject: [PATCH] fixed a bug where ValveParamToBinParam() read flags from the output memory, not input variable --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40982 --- extensions/sdktools/vdecoder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/sdktools/vdecoder.cpp b/extensions/sdktools/vdecoder.cpp index 58a720d9..cc2f7279 100644 --- a/extensions/sdktools/vdecoder.cpp +++ b/extensions/sdktools/vdecoder.cpp @@ -27,7 +27,7 @@ size_t ValveParamToBinParam(ValveType type, size_t mySize = sizeof(Vector *); if (pass == PassType_Basic) { - if (info->flags & PASSFLAG_BYREF) + if (flags & PASSFLAG_BYREF) { return 0; } @@ -49,7 +49,7 @@ size_t ValveParamToBinParam(ValveType type, size_t mySize = sizeof(QAngle *); if (pass == PassType_Basic) { - if (info->flags & PASSFLAG_BYREF) + if (flags & PASSFLAG_BYREF) { return 0; } @@ -71,7 +71,7 @@ size_t ValveParamToBinParam(ValveType type, case Valve_Edict: case Valve_String: { - if (pass != PassType_Basic || (info->flags & PASSFLAG_BYREF)) + if (pass != PassType_Basic || (flags & PASSFLAG_BYREF)) { return 0; }