peace-maker / DHooks2

Dynamic detouring support for the DHooks 2 SourceMod extension
https://forums.alliedmods.net/showthread.php?p=2588686#post2588686
67 stars 11 forks source link

Fix error reporting on invalid entity #25

Closed FortyTwoFortyTwo closed 3 years ago

FortyTwoFortyTwo commented 3 years ago

If invalid entity is passed to DHookEntity/DynamicHook.HookEntity, pre/post hook bool were to be reported as invalid entity instead of actual entity index

peace-maker commented 3 years ago

Nice catch, thank you!