From efe2c1831669151d43f36261c426af98a3bcf98c Mon Sep 17 00:00:00 2001 From: Sam V Date: Wed, 14 Sep 2022 11:53:33 +0200 Subject: [PATCH] Use proper constants for all GetBodygroup calls Resolves #373 --- src/game/server/entities/NPCs/blackops/male_assassin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/entities/NPCs/blackops/male_assassin.cpp b/src/game/server/entities/NPCs/blackops/male_assassin.cpp index f3ab95acf..77cbf827c 100644 --- a/src/game/server/entities/NPCs/blackops/male_assassin.cpp +++ b/src/game/server/entities/NPCs/blackops/male_assassin.cpp @@ -136,7 +136,7 @@ void CMOFAssassin::GibMonster() Vector vecGunPos; Vector vecGunAngles; - if (GetBodygroup(2) != 2) + if (GetBodygroup(MAssassinBodygroup::Weapons) != MAssassinWeapon::Blank) { // throw a gun if the grunt has one GetAttachment(0, vecGunPos, vecGunAngles);