mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-11 10:42:02 +00:00
BAPI - mapmanip grid alloc bugfix (#20029)
changes: - bugfix: "BAPI - mapmanip grid alloc bugfix."   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:
7
html/changelogs/DreamySkrell-bapi-grid-alloc-bugfix.yml
Normal file
7
html/changelogs/DreamySkrell-bapi-grid-alloc-bugfix.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
author: DreamySkrell
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "BAPI - mapmanip grid alloc bugfix."
|
||||
@@ -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.
Reference in New Issue
Block a user