Skip to content

Commit

Permalink
update 1.7.3
Browse files Browse the repository at this point in the history
fixed invalid ident on load json from file
  • Loading branch information
rejchev committed Aug 12, 2023
1 parent 5d94b98 commit f57b7cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion smsdk_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/* Basic information exposed publicly */
#define SMEXT_CONF_NAME "Jansson-re"
#define SMEXT_CONF_DESCRIPTION "Provides JSON natives for plugins"
#define SMEXT_CONF_VERSION "1.7.2"
#define SMEXT_CONF_VERSION "1.7.3"
#define SMEXT_CONF_AUTHOR "rej.chev"
#define SMEXT_CONF_URL "https://discord.gg/cFZ97Mzrjy"
#define SMEXT_CONF_LOGTAG "Json"
Expand Down
2 changes: 1 addition & 1 deletion src/jansson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ IJson *Jansson::create(const SourceMod::PathType& type, const char *path, const
char filePath[PLATFORM_MAX_PATH];
smutils->BuildPath(type, filePath, PLATFORM_MAX_PATH, "%s", path);

if((object = json_load_file(path, flags, &error)) == nullptr) {
if((object = json_load_file(filePath, flags, &error)) == nullptr) {

if(pError != nullptr)
*pError = ToKnownError(&error);
Expand Down

0 comments on commit f57b7cc

Please sign in to comment.