X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=LocalCheater.m;fp=LocalCheater.m;h=157b43a7d48d87606de2ef6f4190cd2d0b6da083;hb=cd317fe26f0deee1697ea5454fcb74135e507e61;hp=06796a18be0bf4a2a4a7d23069846f5e4fa5d877;hpb=1654f21c723dadf0d88b0e92f882a6c9a69bf08e;p=chaz%2Fthecheat diff --git a/LocalCheater.m b/LocalCheater.m index 06796a1..157b43a 100644 --- a/LocalCheater.m +++ b/LocalCheater.m @@ -420,13 +420,13 @@ int _MemoryDumpTask( ThreadedTask *task, unsigned iteration ) TCArray variables; TCArray values; - if ( searchContext = [_searchResults lastObject] ) { + if ( (searchContext = [_searchResults lastObject]) ) { [_savedResults addObject:searchContext]; [_searchResults removeLastObject]; [self stopWatchingVariables]; - if ( searchContext = [_searchResults lastObject] ) { + if ( (searchContext = [_searchResults lastObject]) ) { if ( _shouldCopy ) { variables = TCArrayCopyElements( searchContext->addresses, _returnLimit ); values = TCArrayCopyElements( searchContext->values, _returnLimit ); @@ -452,7 +452,7 @@ int _MemoryDumpTask( ThreadedTask *task, unsigned iteration ) [self stopWatchingVariables]; - if ( searchContext = [_savedResults lastObject] ) { + if ( (searchContext = [_savedResults lastObject]) ) { [_searchResults addObject:searchContext]; [_savedResults removeLastObject]; @@ -486,7 +486,7 @@ int _MemoryDumpTask( ThreadedTask *task, unsigned iteration ) return; } - if ( context = [_searchResults lastObject] ) { + if ( (context = [_searchResults lastObject]) ) { TCArray addresses = context->addresses; TCArray values = context->values; // check the index & count