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:
David Anderson 2007-06-20 07:08:53 +00:00
parent 3250d8a062
commit c2d1cc5ab5

View File

@ -245,7 +245,7 @@ ValveCall *CreateValveVCall(unsigned int vtableIdx,
if (vcalltype == ValveCall_Entity)
{
vc->thisinfo->vtype = Valve_CBaseEntity;
vc->thisinfo->decflags |= VDECODE_FLAG_ALLOWWORLD;
vc->thisinfo->decflags = VDECODE_FLAG_ALLOWWORLD;
} else if (vcalltype == ValveCall_Player) {
vc->thisinfo->vtype = Valve_CBasePlayer;
vc->thisinfo->decflags = 0;