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
This commit is contained in:
David Anderson 2007-06-17 20:43:21 +00:00
parent 94c8b6b4da
commit c8f2d56dd3

View File

@ -27,7 +27,7 @@ size_t ValveParamToBinParam(ValveType type,
size_t mySize = sizeof(Vector *); size_t mySize = sizeof(Vector *);
if (pass == PassType_Basic) if (pass == PassType_Basic)
{ {
if (info->flags & PASSFLAG_BYREF) if (flags & PASSFLAG_BYREF)
{ {
return 0; return 0;
} }
@ -49,7 +49,7 @@ size_t ValveParamToBinParam(ValveType type,
size_t mySize = sizeof(QAngle *); size_t mySize = sizeof(QAngle *);
if (pass == PassType_Basic) if (pass == PassType_Basic)
{ {
if (info->flags & PASSFLAG_BYREF) if (flags & PASSFLAG_BYREF)
{ {
return 0; return 0;
} }
@ -71,7 +71,7 @@ size_t ValveParamToBinParam(ValveType type,
case Valve_Edict: case Valve_Edict:
case Valve_String: case Valve_String:
{ {
if (pass != PassType_Basic || (info->flags & PASSFLAG_BYREF)) if (pass != PassType_Basic || (flags & PASSFLAG_BYREF))
{ {
return 0; return 0;
} }