fix: Crash while previewing/spawning unreleased vehicles (#438)

This commit is contained in:
8KV 2022-09-08 16:30:17 +03:00 committed by GitHub
parent b4700d40d8
commit fccf5c0104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,6 +235,7 @@ namespace big
if (
item_json["Hash"].is_null() ||
item_json["Name"].is_null() ||
item_json["MonetaryValue"] == 0 ||
!item_json["Bones"].is_array() ||
item_json["Bones"][0] == "stub"
) {