From da686350139bb11da5477f4cd4f63bed45be6b9c Mon Sep 17 00:00:00 2001 From: Blixibon Date: Tue, 28 Sep 2021 10:59:30 -0500 Subject: [PATCH] Fixed an issue with IsCombatItem() not being overridden in CItem --- sp/src/game/server/items.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sp/src/game/server/items.h b/sp/src/game/server/items.h index 53f440e8..6209c15e 100644 --- a/sp/src/game/server/items.h +++ b/sp/src/game/server/items.h @@ -89,9 +89,9 @@ public: #endif #ifdef MAPBASE - // This is in CBaseEntity, but I can't find a use for it anywhere. - // It may have been originally intended for TF2 or some other game-specific item class. Please remove this if it turns out to be something important. - virtual bool IsCombatItem() { return true; } + // This appeared to have no prior use in Source SDK 2013. + // It may have been originally intended for TF2 or some other game-specific item class. + virtual bool IsCombatItem() const { return true; } // Used to access item_healthkit values, etc. from outside of the class virtual float GetItemAmount() { return 1.0f; }