From: hgn Date: Wed, 29 Nov 2023 18:08:24 +0000 (+0000) Subject: fix null reference X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;h=74b2136d5b41b18e2eec698f1fd11b503aa1100a;p=carveJwlIkooP6JGAAIwe30JlM.git fix null reference --- 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