Skip to content

Commit

Permalink
Fix custom binding handling with void return
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Jun 26, 2023
1 parent 42c1152 commit a4b3a3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripting/vscript.sp
Expand Up @@ -2,7 +2,7 @@

#include "include/vscript.inc"

#define PLUGIN_VERSION "1.7.1"
#define PLUGIN_VERSION "1.7.2"
#define PLUGIN_VERSION_REVISION "manual"

char g_sOperatingSystem[16];
Expand Down
2 changes: 1 addition & 1 deletion scripting/vscript/binding.sp
Expand Up @@ -163,7 +163,7 @@ public MRESReturn Binding_Detour(DHookReturn hReturn, DHookParam hParam)
nResult = 0;
}
}
else if (Field_GetSMField(nField) == SMField_Vector)
else if (nField != FIELD_VOID && Field_GetSMField(nField) == SMField_Vector)
{
if (nResult == 0)
{
Expand Down

0 comments on commit a4b3a3a

Please sign in to comment.