Skip to content

Commit

Permalink
Remove client-side assertion for the existence of a single variant fo…
Browse files Browse the repository at this point in the history
…r each akimbo pistol

There seem to be cases where that can't be found.
  • Loading branch information
TomyLobo committed Oct 5, 2018
1 parent affe79a commit 1184b7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mp/src/game/shared/sdk/weapon_akimbobase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ CWeaponSDKBase *CAkimboBase::FindSingleWeapon()
SDKWeaponID eSingleId = AliasToWeaponID(GetSDKWpnData().m_szSingle);

CWeaponSDKBase *pSingle = GetPlayerOwner()->FindWeapon(eSingleId);
#ifdef GAME_DLL
Assert(pSingle);
#endif

return pSingle;
}
2 changes: 1 addition & 1 deletion mp/src/game/shared/sdk/weapon_akimbobase.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class CAkimboBase : public CWeaponSDKBase

virtual const Vector GetShootPosition(CSDKPlayer* pShooter);

// Finds the single variant of this akimbo weapon
// Finds the single variant of this akimbo weapon - returns NULL if it wasn't found
CWeaponSDKBase *FindSingleWeapon();

protected:
Expand Down

0 comments on commit 1184b7e

Please sign in to comment.