From eb97254346d2c39930c206d67cafadc33cfdc9cc Mon Sep 17 00:00:00 2001 From: Jens Ayton Date: Sat, 1 Jan 2011 16:40:07 +0000 Subject: [PATCH] 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 --- src/Core/Scripting/OOJSSound.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Scripting/OOJSSound.m b/src/Core/Scripting/OOJSSound.m index 7ad7eca5..a823ab95 100644 --- a/src/Core/Scripting/OOJSSound.m +++ b/src/Core/Scripting/OOJSSound.m @@ -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]; }