mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-04 16:02:48 +00:00
Only throw XmpException on negative seek pos
This commit is contained in:
parent
1325bf7afa
commit
743c9fe8ef
1 changed files with 5 additions and 3 deletions
|
|
@ -145,9 +145,11 @@ void Xmp<C>::seek(int position_ms)
|
||||||
SRB2_ASSERT(instance_ != nullptr);
|
SRB2_ASSERT(instance_ != nullptr);
|
||||||
SRB2_ASSERT(module_loaded_ == true);
|
SRB2_ASSERT(module_loaded_ == true);
|
||||||
|
|
||||||
int err = xmp_seek_time(instance_, position_ms);
|
int pos = xmp_seek_time(instance_, position_ms);
|
||||||
if (err != 0)
|
if (pos < 0)
|
||||||
throw XmpException(err);
|
{
|
||||||
|
throw XmpException(pos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <size_t C>
|
template <size_t C>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue