Support BGAnimation sound defined in BGAnimation.ini

This commit is contained in:
Chris Danford
2003-04-02 07:04:17 +00:00
parent eedd17db34
commit 3d1162aa52
2 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ void BGAnimation::LoadFromAniDir( CString sAniDir )
{
Unload();
if( sAniDir.Right(1) != "/" )
if( !sAniDir.empty() && sAniDir.Right(1) != "/" )
sAniDir += "/";
ASSERT( IsADirectory(sAniDir) );