mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-26 07:21: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(module_loaded_ == true);
|
||||
|
||||
int err = xmp_seek_time(instance_, position_ms);
|
||||
if (err != 0)
|
||||
throw XmpException(err);
|
||||
int pos = xmp_seek_time(instance_, position_ms);
|
||||
if (pos < 0)
|
||||
{
|
||||
throw XmpException(pos);
|
||||
}
|
||||
}
|
||||
|
||||
template <size_t C>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue