swordlegend / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

rcIntArray behaviour different #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is my fault :)

rcIntArray(n) used to just create capacity and leave size as 0. My patch called 
resize which allocates space but also sets the array size.

inline rcIntArray(int n) : m_data(0), m_size(0), m_cap(n) { m_data = 
(int*)rcAlloc(sizeof(int)*n, RC_ALLOC_TEMP); }

should hopefully behave as before.

Original issue reported on code.google.com by cameron....@gmail.com on 11 Jul 2010 at 6:29

GoogleCodeExporter commented 9 years ago
I also changed the resize() when I changed the code earlier. So when the m_cap 
== 0 it sets m_cap = n.

Original comment by memono...@gmail.com on 11 Jul 2010 at 10:21