X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=LocalCheater.m;h=157b43a7d48d87606de2ef6f4190cd2d0b6da083;hb=refs%2Fheads%2Fyishen;hp=2ab5bcf01e928db1d13993f729153317d3300bd5;hpb=556707a7a26ac2dc4d10eff8e4b2abcc893cfce3;p=chaz%2Fthecheat diff --git a/LocalCheater.m b/LocalCheater.m index 2ab5bcf..157b43a 100644 --- a/LocalCheater.m +++ b/LocalCheater.m @@ -1,9 +1,9 @@ /* * The Cheat - The legendary universal game trainer for Mac OS X. - * http://www.dogcows.com/chaz/wiki/TheCheat + * http://www.brokenzipper.com/trac/wiki/TheCheat * - * Copyright (c) 2003-2010, Charles McGarvey et al. + * Copyright (c) 2003-2011, Charles McGarvey et al. * * Distributable under the terms and conditions of the 2-clause BSD * license; see the file COPYING for the legal text of the license. @@ -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