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:
parent
94c8b6b4da
commit
c8f2d56dd3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user