summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2018-04-30 15:26:01 -0400
committerJoel Fischer <joeljfischer@gmail.com>2018-04-30 15:26:01 -0400
commit51546ffe41a5a22ead33a6e356bbf44faa1197d2 (patch)
treee94d5ee0b8a1af44eacaa3a1a7bba29ee0dc6732
parentf72a81254ea44948964eaa3bfd0253e133974dd4 (diff)
downloadsdl_ios-51546ffe41a5a22ead33a6e356bbf44faa1197d2.tar.gz
Fix looping through incorrect list
-rw-r--r--SmartDeviceLink/SDLVoiceCommandManager.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLVoiceCommandManager.m b/SmartDeviceLink/SDLVoiceCommandManager.m
index 35e82cb11..884e5fbf6 100644
--- a/SmartDeviceLink/SDLVoiceCommandManager.m
+++ b/SmartDeviceLink/SDLVoiceCommandManager.m
@@ -189,7 +189,7 @@ UInt32 const VoiceCommandIdMin = 1900000000;
- (NSArray<SDLDeleteCommand *> *)sdl_deleteCommandsForVoiceCommands:(NSArray<SDLVoiceCommand *> *)voiceCommands {
NSMutableArray<SDLDeleteCommand *> *mutableDeletes = [NSMutableArray array];
- for (SDLVoiceCommand *command in self.voiceCommands) {
+ for (SDLVoiceCommand *command in voiceCommands) {
SDLDeleteCommand *delete = [[SDLDeleteCommand alloc] initWithId:command.commandId];
[mutableDeletes addObject:delete];
}