fix null reference
authorhgn <hgodden00@gmail.com>
Wed, 29 Nov 2023 18:08:24 +0000 (18:08 +0000)
committerhgn <hgodden00@gmail.com>
Wed, 29 Nov 2023 18:08:24 +0000 (18:08 +0000)
ent_skateshop.c

index 12e89233ab670d36a1537eb62f73b3de413421d3..14df0dcc3606919c3003696fe3989aa81d57c705 100644 (file)
@@ -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<slot_count; i++ ){
          struct player_board *board = &localplayer.fallback_board;