Skip to content

Commit 3423eae

Browse files
committed
Fix omit not working
1 parent e81ca9e commit 3423eae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extension.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,8 +1127,8 @@ cell_t smn_OmitSendVar(IPluginContext* pContext, const cell_t* params)
11271127
if (!FindEntitySendPropInfo(pContext, entref, propname, &info))
11281128
return 0;
11291129

1130-
SharedEdit empty;
1131-
AddSendVarEdit(entref, client, empty);
1130+
SharedEdit edit = std::make_shared<Edit>(Edit{EditAction::OMIT, priority, info.propindex, info.prop, SharedVariant{}});
1131+
AddSendVarEdit(entref, client, edit);
11321132

11331133
return 0;
11341134
}

smsdk_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/* Basic information exposed publicly */
4141
#define SMEXT_CONF_NAME "SendVarEdit"
4242
#define SMEXT_CONF_DESCRIPTION "Manipulate networked property values per client"
43-
#define SMEXT_CONF_VERSION "1.3.0"
43+
#define SMEXT_CONF_VERSION "1.3.1"
4444
#define SMEXT_CONF_AUTHOR "ILDPRUT"
4545
#define SMEXT_CONF_URL "https://github.com/chrb22/sendvaredit"
4646
#define SMEXT_CONF_LOGTAG "SENDVAREDIT"

0 commit comments

Comments
 (0)