summaryrefslogtreecommitdiffhomepage
path: root/src/sst.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sst.c')
-rw-r--r--src/sst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sst.c b/src/sst.c
index fcf26c4..5d21f06 100644
--- a/src/sst.c
+++ b/src/sst.c
@@ -76,7 +76,7 @@ DEF_CCMD_HERE(sst_autoload_enable, "Register SST to load on game startup", 0) {
const os_char *searchdir = ifacever == 3 ?
gameinfo_gamedir : gameinfo_bindir;
os_char path[PATH_MAX];
- if (!os_dlfile(ownhandle(), path, sizeof(path) / sizeof(*path))) {
+ if (os_dlfile(ownhandle(), path, sizeof(path) / sizeof(*path)) == -1) {
// hopefully by this point this won't happen, but, like, never know
errmsg_errordl("failed to get path to plugin");
return;