BAPI - mapmanip grid alloc bugfix (#20029)

changes:
  - bugfix: "BAPI - mapmanip grid alloc bugfix."



![image](https://github.com/user-attachments/assets/c23ee55f-218d-4814-89ce-2a22d8fe64c4)

![image](https://github.com/user-attachments/assets/7ca852f7-a656-499b-b9a9-769e5207ed2b)

Yeah, it was allocating HUGE grids for no reason
oops
Thank you to @warriorstar-orion for catching it

---------

Co-authored-by: DreamySkrell <>
Co-authored-by: AuroraBuildBot <action@github.com>
This commit is contained in:
DreamySkrell
2024-10-13 23:16:12 +02:00
committed by GitHub
parent 6b04252054
commit 7caa11ec69
4 changed files with 8 additions and 1 deletions

BIN
bapi.dll

Binary file not shown.

View File

@@ -0,0 +1,7 @@
author: DreamySkrell
delete-after: True
changes:
- bugfix: "BAPI - mapmanip grid alloc bugfix."

View File

@@ -68,7 +68,7 @@ impl TileGrid {
pub fn new(size_x: i32, size_y: i32, size_z: i32) -> TileGrid {
Self {
size: Coord3::new(size_x, size_y, size_z),
grid: vec![Tile::default(); (size_x * size_y * size_y) as usize],
grid: vec![Tile::default(); (size_x * size_y * size_z) as usize],
}
}

Binary file not shown.