Fixed a terrible mistake in [Index|Vertex]Buffer::Reset

Former-commit-id: 97daa00a60615e88fb8d015bd02281713c61807b
This commit is contained in:
Lynix 2014-08-18 15:14:29 +02:00
parent 4acd61cf30
commit f936dac6ad
2 changed files with 4 additions and 4 deletions

View File

@ -177,9 +177,9 @@ void NzIndexBuffer::Reset(bool largeIndices, NzBuffer* buffer, unsigned int star
return;
}
if (endOffset > startOffset)
if (startOffset > endOffset)
{
NazaraError("End offset cannot be over start offset");
NazaraError("Start offset cannot be over end offset");
return;
}

View File

@ -189,9 +189,9 @@ void NzVertexBuffer::Reset(const NzVertexDeclaration* vertexDeclaration, NzBuffe
return;
}
if (endOffset > startOffset)
if (startOffset > endOffset)
{
NazaraError("End offset cannot be over start offset");
NazaraError("Start offset cannot be over end offset");
return;
}