- this.(weaponentity).cnt = this.(weaponentity).m_switchweapon.m_id;
- this.(weaponentity).m_switchweapon = wep;
- this.(weaponentity).selectweapon = wep.m_id;
+ entity w_ent = this.(weaponentity);
+ w_ent.cnt = w_ent.m_switchweapon.m_id;
+ w_ent.m_switchweapon = wep;
+ w_ent.selectweapon = wep.m_id;