Fixed a terrible mistake in [Index|Vertex]Buffer::Reset
Former-commit-id: 97daa00a60615e88fb8d015bd02281713c61807b
This commit is contained in:
parent
4acd61cf30
commit
f936dac6ad
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue