Merge pull request #61 from Kromster80/master
Removed superflous memset
This commit is contained in:
commit
86d57bd5e9
@ -481,10 +481,8 @@ bool rcBuildHeightfieldLayers(rcContext* ctx, rcCompactHeightfield& chf,
|
|||||||
for (int i = 0; i < lset.nlayers; ++i)
|
for (int i = 0; i < lset.nlayers; ++i)
|
||||||
{
|
{
|
||||||
unsigned char curId = (unsigned char)i;
|
unsigned char curId = (unsigned char)i;
|
||||||
|
|
||||||
// Allocate memory for the current layer.
|
|
||||||
rcHeightfieldLayer* layer = &lset.layers[i];
|
rcHeightfieldLayer* layer = &lset.layers[i];
|
||||||
memset(layer, 0, sizeof(rcHeightfieldLayer));
|
|
||||||
|
|
||||||
const int gridSize = sizeof(unsigned char)*lw*lh;
|
const int gridSize = sizeof(unsigned char)*lw*lh;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user