mirror of
https://github.com/n64dev/cen64.git
synced 2024-06-22 14:02:41 -04:00
memorymap.c: initialize mappings array with zeros
This commit is contained in:
parent
58c6af5f98
commit
11e50e5585
|
@ -17,6 +17,7 @@ static void rotate_right(struct memory_map *, struct memory_map_node *);
|
|||
|
||||
// Creates a new memory map.
|
||||
void create_memory_map(struct memory_map *map) {
|
||||
memset(map->mappings, 0, sizeof(struct memory_map_node) * 19);
|
||||
map->next_map_index = 1;
|
||||
map->nil = map->mappings;
|
||||
map->root = map->nil;
|
||||
|
|
Loading…
Reference in a new issue