diff --git a/LagCompensation/scripting/LagCompensation.sp b/LagCompensation/scripting/LagCompensation.sp index ccd1067..18ca339 100644 --- a/LagCompensation/scripting/LagCompensation.sp +++ b/LagCompensation/scripting/LagCompensation.sp @@ -716,7 +716,7 @@ public void OnEntitySpawned(int entity, const char[] classname) GetEntityClassname(iParent, sParentClassname, sizeof(sParentClassname)); if(StrEqual(sParentClassname, "player") || - strncmp(sParentClassname, "weapon_", 7)) + !strncmp(sParentClassname, "weapon_", 7)) { return; }