Skip to content

Commit d2be5ee

Browse files
committed
Minor clear up fix
1 parent 55e5f5e commit d2be5ee

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

7 Bytes
Binary file not shown.

addons/sourcemod/scripting/l4d2_hittable_control.sp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,11 @@ public void OnMapEnd()
287287

288288
void ClearPhysicsHitInfos()
289289
{
290-
for (int i = 0; i < sizeof(g_nPhysicsHitInfoEntry); ++i)
290+
for (int i = 0; i < MAX_EDICTS; ++i)
291+
{
291292
g_nPhysicsHitInfoEntry[i] = -1;
293+
g_iPhysicsDamage[i] = -1;
294+
}
292295

293296
delete g_PhysicsHitInfos;
294297
g_PhysicsHitInfos = new ArrayList(sizeof(PhysicsHitInfo));

0 commit comments

Comments
 (0)