- fix bad asserts.

This commit is contained in:
Christoph Oelckers 2022-04-29 08:40:00 +02:00
parent 0dc670da8e
commit f6ae967c52

View file

@ -113,7 +113,7 @@ void StopInterpolation(int index, int type)
void StartInterpolation(DCoreActor* actor, int type) void StartInterpolation(DCoreActor* actor, int type)
{ {
assert(type = Interp_Sprite_Z); assert(type == Interp_Sprite_Z);
for (unsigned i = 0; i < interpolations.Size(); i++) for (unsigned i = 0; i < interpolations.Size(); i++)
{ {
if (interpolations[i].actor == actor && interpolations[i].type == type) if (interpolations[i].actor == actor && interpolations[i].type == type)
@ -129,7 +129,7 @@ void StartInterpolation(DCoreActor* actor, int type)
void StopInterpolation(DCoreActor* actor, int type) void StopInterpolation(DCoreActor* actor, int type)
{ {
assert(type = Interp_Sprite_Z); assert(type == Interp_Sprite_Z);
for (unsigned i = 0; i < interpolations.Size(); i++) for (unsigned i = 0; i < interpolations.Size(); i++)
{ {
if (interpolations[i].actor == actor && interpolations[i].type == type) if (interpolations[i].actor == actor && interpolations[i].type == type)