A New Game Written in D

Kenny Shields mail at kennyshields.net
Sat May 21 00:40:13 UTC 2022


On Friday, 20 May 2022 at 23:42:49 UTC, Ali Çehreli wrote:

> Anything interesting there? Why was it crashing?
>
> Ali

Array bounds violation, though not a D array. Essentially, the 
minimap (which basically boils down to a C++ std::vector managed 
by SFML) was not being resized when changing map sizes. Thus, 
when generating a map larger than the previously generated one, 
the minimap manager would try to update parts of the vector that 
did not exist.


More information about the Digitalmars-d-announce mailing list