diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-05-25 23:30:32 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-05-25 23:30:32 +0100 |
commit | 268e09ecd101cf235fd9056bd1d5ab3d0a3c58fb (patch) | |
tree | df13284e5f01e264c1b9f931abbc600dd795c937 /src/sst.c | |
parent | c83de76ad2f59927cf01bcfbae18a5d598159bb7 (diff) |
Fix wonky comparisons in CreateInterface
A stupid, stupid bug I'd probably never have caught for years and years.
Thanks Evan Lin in the Portal Discord for pointing it out!
Diffstat (limited to 'src/sst.c')
-rw-r--r-- | src/sst.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -484,7 +484,7 @@ static const void *const *const plugin_obj = vtable; EXPORT const void *CreateInterface(const char *name, int *ret) { if (!strncmp(name, "ISERVERPLUGINCALLBACKS00", 24)) { - if ((name[24] >= '1' || name[24] <= '3') && name[25] == '\0') { + if (name[24] >= '1' && name[24] <= '3' && name[25] == '\0') { if (ret) *ret = 0; ifacever = name[24] - '0'; return &plugin_obj; |