aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
commitad343eebb9055f640310ba8dc125ce0de0e1d10b (patch)
tree2fccba49c5eba97b92bba07f836a31502b7be547
parent0c9a7b6707c7092fc97305f0e7260141476005e2 (diff)
Fixed bug on memory render function.
-rw-r--r--src/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c
index 7a2315d..a4ed262 100644
--- a/src/render.c
+++ b/src/render.c
@@ -74,7 +74,7 @@ void sal_ren_get_image(uint32 origin, uint32 cell_size, uint32 buff_size,
max_pos = origin + (cell_size * buff_size);
#pragma omp parallel for
- for (i = 0; i < sal_proc_get_count(); i++) {
+ for (i = 0; i < sal_proc_get_capacity(); i++) {
if (!sal_proc_is_free(i)) {
Process proc = sal_proc_get_proc(i);
apply_flag(origin, max_pos, cell_size, proc.ip, IP_FLAG, buffer);