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 d8023befc9
commit 43659704f9

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"
) {