forked from mirror/openmw-tes3mp
Issue #225: Corrected wrong delete operator introduced by one of previous commit.
This commit is contained in:
parent
2b9845a5b6
commit
f8afc22f04
1 changed files with 4 additions and 4 deletions
|
@ -510,7 +510,7 @@ void NIFLoader::createOgreSubMesh(NiTriShape *shape, const String &material, std
|
|||
datamod[index+2] = original.z;
|
||||
}
|
||||
vbuf->writeData(0, vbuf->getSizeInBytes(), datamod, false);
|
||||
delete datamod;
|
||||
delete [] datamod;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -551,7 +551,7 @@ void NIFLoader::createOgreSubMesh(NiTriShape *shape, const String &material, std
|
|||
datamod[index+2] = original.z;
|
||||
}
|
||||
vbuf->writeData(0, vbuf->getSizeInBytes(), datamod, false);
|
||||
delete datamod;
|
||||
delete [] datamod;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -603,7 +603,7 @@ void NIFLoader::createOgreSubMesh(NiTriShape *shape, const String &material, std
|
|||
datamod[i + 1] =y;
|
||||
}
|
||||
vbuf->writeData(0, vbuf->getSizeInBytes(), datamod, false);
|
||||
delete datamod;
|
||||
delete [] datamod;
|
||||
}
|
||||
else
|
||||
vbuf->writeData(0, vbuf->getSizeInBytes(), data->uvlist.ptr, false);
|
||||
|
@ -648,7 +648,7 @@ void NIFLoader::createOgreSubMesh(NiTriShape *shape, const String &material, std
|
|||
}
|
||||
|
||||
ibuf->writeData(0, ibuf->getSizeInBytes(), datamod, false);
|
||||
delete datamod;
|
||||
delete [] datamod;
|
||||
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue