mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-13 12:29:41 -07:00
fix divide by zero in the baker
This commit is contained in:
1 parent
609cbe7288
commit
732c73deff
1 file changed
+1
-1
@@ -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