fixed a bug where thisinfo could be constructed with garbage data for decflags
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40992
This commit is contained in:
parent
3250d8a062
commit
c2d1cc5ab5
@ -245,7 +245,7 @@ ValveCall *CreateValveVCall(unsigned int vtableIdx,
|
|||||||
if (vcalltype == ValveCall_Entity)
|
if (vcalltype == ValveCall_Entity)
|
||||||
{
|
{
|
||||||
vc->thisinfo->vtype = Valve_CBaseEntity;
|
vc->thisinfo->vtype = Valve_CBaseEntity;
|
||||||
vc->thisinfo->decflags |= VDECODE_FLAG_ALLOWWORLD;
|
vc->thisinfo->decflags = VDECODE_FLAG_ALLOWWORLD;
|
||||||
} else if (vcalltype == ValveCall_Player) {
|
} else if (vcalltype == ValveCall_Player) {
|
||||||
vc->thisinfo->vtype = Valve_CBasePlayer;
|
vc->thisinfo->vtype = Valve_CBasePlayer;
|
||||||
vc->thisinfo->decflags = 0;
|
vc->thisinfo->decflags = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user