Skip to content

Commit

Permalink
Fix JSON maplist (splewis#347)
Browse files Browse the repository at this point in the history
* Fix maplist

* Fix more LogMessages

* Fix LogMessage
  • Loading branch information
Cretezy authored and splewis committed Feb 15, 2019
1 parent 958d99f commit 2b027d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripting/get5/jsonhelpers.sp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ stock float json_object_get_float_safe(JSON_Object json, const char[] key, float
// Used for parsing an Array[String] to a sourcepawn ArrayList of strings
stock int AddJsonSubsectionArrayToList(JSON_Object json, const char[] key, ArrayList list,
int maxValueLength) {
if (json_has_key(json, key, Type_Object)) {
if (!json_has_key(json, key, Type_Object)) {
return 0;
}

Expand All @@ -91,7 +91,6 @@ stock int AddJsonSubsectionArrayToList(JSON_Object json, const char[] key, Array
count++;
}
array.Cleanup();
delete array;
}
return count;
}
Expand Down

0 comments on commit 2b027d8

Please sign in to comment.