X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_skateshop.c;h=14df0dcc3606919c3003696fe3989aa81d57c705;hb=74b2136d5b41b18e2eec698f1fd11b503aa1100a;hp=12e89233ab670d36a1537eb62f73b3de413421d3;hpb=fbc68c65e01838feb77f47b30994b45fcc39ebaf;p=carveJwlIkooP6JGAAIwe30JlM.git 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