JS Sound.load() now handles customsounds.plist keys as intended.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3950 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2011-01-01 16:40:07 +00:00
parent 71793e8ef8
commit eb97254346

View File

@ -155,7 +155,7 @@ static OOSound *GetNamedSound(NSString *name)
{
OOSound *sound = nil;
if ([name hasPrefix:@"["] && [name hasSuffix:@"["])
if ([name hasPrefix:@"["] && [name hasSuffix:@"]"])
{
sound = [OOSound soundWithCustomSoundKey:name];
}