Skip to content

Commit df61049

Browse files
authored
Fix loop in last entity index
1 parent ef7afb9 commit df61049

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/sourcemod/scripting/l4d2_tank_props_glow.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ void HookTankProps()
438438
{
439439
int iEntCount = GetMaxEntities();
440440

441-
for (int i = MaxClients+1; i < iEntCount; i++) {
441+
for (int i = MaxClients+1; i <= iEntCount; i++) {
442442
if (IsTankProp(i)) {
443443
SDKHook(i, SDKHook_OnTakeDamagePost, PropDamaged);
444444
g_hTankProps.Push(i);

0 commit comments

Comments
 (0)