mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed: StreamSong::SetPosition required a NULL pointer check.
SVN r791 (trunk)
This commit is contained in:
parent
4576022c8d
commit
1e418576da
2 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
March 9, 2008 (Changes by Graf Zahl)
|
||||
- fixed: StreamSong::SetPosition required a NULL pointer check.
|
||||
- fixed: The release build still linked to the old FMOD version.
|
||||
- fixed: SPCSong only works for Win32 so its definition must be excluded for Linux.
|
||||
|
||||
|
|
|
@ -83,5 +83,12 @@ bool StreamSong::IsPlaying ()
|
|||
|
||||
bool StreamSong::SetPosition(int order)
|
||||
{
|
||||
return m_Stream->SetPosition(order);
|
||||
if (m_Stream != NULL)
|
||||
{
|
||||
return m_Stream->SetPosition(order);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue