Skip to content

AStar2D reserve_space #102612

Open
Open
@RoyalXXX

Description

Tested versions

System information

Godot 4.3 the latest stable Win 11 64-bit

Issue description

If the value of num_nodes as the reserve_space() argument is less than 64, the error ‘New capacity must be greater than current capacity: 64, new was: num_nodes is printed.
However, I haven't set the capacity to 64 before. Perhaps Godot defaults to a capacity of 64, but it's worth writing about in the documentation.
The current documentation only states that 'The new capacity must be greater or equal to the old capacity.'

Steps to reproduce

Minimal reproduction project (MRP)

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions