From 9d0c6a717b94ef56aafad7fac4a97ba437afe0c8 Mon Sep 17 00:00:00 2001 From: Kevin Anthoney Date: Sat, 7 May 2016 15:56:20 +0100 Subject: [PATCH] Fix missing line in moveTargetMemoryBy --- src/Core/Entities/PlayerEntity.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Core/Entities/PlayerEntity.m b/src/Core/Entities/PlayerEntity.m index e2ed7bd8..94e1423e 100644 --- a/src/Core/Entities/PlayerEntity.m +++ b/src/Core/Entities/PlayerEntity.m @@ -11777,6 +11777,7 @@ static NSString *last_outfitting_key=nil; { NSInteger idx = (NSInteger)target_memory_index + delta; while (idx < 0) idx += PLAYER_TARGET_MEMORY_SIZE; + while (idx >= PLAYER_TARGET_MEMORY_SIZE) idx -= PLAYER_TARGET_MEMORY_SIZE; target_memory_index = idx; id targ_id = [target_memory objectAtIndex:target_memory_index];