From 74b2136d5b41b18e2eec698f1fd11b503aa1100a Mon Sep 17 00:00:00 2001 From: hgn Date: Wed, 29 Nov 2023 18:08:24 +0000 Subject: [PATCH] fix null reference --- ent_skateshop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ent_skateshop.c b/ent_skateshop.c index 12e8923..14df0dc 100644 --- a/ent_skateshop.c +++ b/ent_skateshop.c @@ -739,6 +739,9 @@ static void skateshop_render_nonfocused( world_instance *world, camera *cam ){ ent_marker *mark_rack = mdl_arritm( &world->ent_marker, mdl_entity_id_id(shop->boards.id_rack)); + if( !mark_rack ) + continue; + u32 slot_count = vg_list_size(global_skateshop.shop_view_slots); for( u32 i=0; i