projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3abfa75
)
fix null reference
author
hgn
<hgodden00@gmail.com>
Wed, 29 Nov 2023 18:08:24 +0000
(18:08 +0000)
committer
hgn
<hgodden00@gmail.com>
Wed, 29 Nov 2023 18:08:24 +0000
(18:08 +0000)
ent_skateshop.c
patch
|
blob
|
history
diff --git
a/ent_skateshop.c
b/ent_skateshop.c
index 12e89233ab670d36a1537eb62f73b3de413421d3..14df0dcc3606919c3003696fe3989aa81d57c705 100644
(file)
--- 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<slot_count; i++ ){
struct player_board *board = &localplayer.fallback_board;