mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
fix divide by zero in the baker
This commit is contained in:
@@ -1766,7 +1766,7 @@ rdim_bake(Arena *arena, RDIM_BakeParams *params)
|
|||||||
RDIM_BakeSrcLineMap *map = &rdim_shared->bake_src_line_maps[file_idx];
|
RDIM_BakeSrcLineMap *map = &rdim_shared->bake_src_line_maps[file_idx];
|
||||||
|
|
||||||
// rjf: set up map
|
// rjf: set up map
|
||||||
map->slots_count = n->v[n_idx].total_line_count;
|
map->slots_count = Max(n->v[n_idx].total_line_count, 1);
|
||||||
map->slots = push_array(arena, RDIM_BakeSrcLineMapSlot, map->slots_count);
|
map->slots = push_array(arena, RDIM_BakeSrcLineMapSlot, map->slots_count);
|
||||||
|
|
||||||
// rjf: gather line-bucketed info
|
// rjf: gather line-bucketed info
|
||||||
|
|||||||
Reference in New Issue
Block a user