Fix incorrect value used for loop point

This commit is contained in:
Zachary Hall 2024-10-15 10:15:23 -07:00
parent ba59bb8028
commit e35316fc58

View file

@ -52,7 +52,7 @@ void ZsmBackend::load(const char *filename) {
while (true) {
tmpDelayTicks -= get_delay_per_frame();
if (tmpDelayTicks < 0.0) {
if (file->get_pos() == (size_t)loop_point) loop_pos = time;
if (file->get_pos() == this->loop_point) loop_pos = time;
ZsmCommand cmd = get_command();
if (cmd.id == ZsmEOF) {
break;