Attano / L4D2-Competitive-Framework

This repository contains the most up-to-date plugins(both binaries and sources), extensions, vscripts and shared settings files. Configs such as ProMod and Equilibrium rely on this framework.
GNU General Public License v3.0
31 stars 38 forks source link

Native "GetEdictClassname" reported: Invalid edict (-1 - -1) #3

Closed Owned67 closed 10 years ago

Owned67 commented 10 years ago

Hello,

i have this error: L 09/08/2014 - 19:02:26: SourceMod error session started L 09/08/2014 - 19:02:26: Info (map "c1m1_hotel") (file "errors_20140908.log") L 09/08/2014 - 19:02:26: [SM] Native "GetEdictClassname" reported: Invalid edict (-1 - -1) L 09/08/2014 - 19:02:26: [SM] Displaying call stack trace for plugin "l4d2_witch_crown_fix.smx": L 09/08/2014 - 19:02:26: [SM] [0] Line 73, C:\Promod\addons\sourcemod\scripting\l4d2_witch_crown_fix.sp::IsT1Shotgun() L 09/08/2014 - 19:02:26: [SM] [1] Line 32, C:\Promod\addons\sourcemod\scripting\l4d2_witch_crown_fix.sp::OnWitchTakeDamage() L 09/08/2014 - 19:06:37: Error log file session closed.

edit: it's good with: if (!IsWitch(victim) || !IsSurvivor(attacker) || IsFakeClient(attacker) || !IsValidEdict(weapon)) return Plugin_Continue;

added || !IsValidEdict(weapon) for check if is valid?

Attano commented 10 years ago

Yeah, try adding it.