Mercurial > mm7
diff Player.cpp @ 1113:39eaa6b00141
something to bool cast (performance warning) mostly fixed
author | Grumpy7 |
---|---|
date | Tue, 28 May 2013 00:19:45 +0200 |
parents | e1ad5ccc13ae |
children | 6a4d654ef9fb |
line wrap: on
line diff
--- a/Player.cpp Mon May 27 23:29:39 2013 +0200 +++ b/Player.cpp Tue May 28 00:19:45 2013 +0200 @@ -6073,7 +6073,7 @@ } - + assert(false && "Unknown attribute!"); } //----- (00490109) -------------------------------------------------------- @@ -9041,11 +9041,11 @@ break; case 243: v17 = (char *)&this->uSkillPoints; - result = *v17; + result = *v17 != NULL; if ( (unsigned int)pValue <= *(int *)v17 ) { *(int *)v17 -= (int)pValue; - result = v17; + result = (v17 != NULL); } else *(int *)v17 = 0; @@ -9105,6 +9105,7 @@ pParty->uNumArenaLordWins -= (char)pValue; break; } + assert(false && "Function not returning any value!"); } else {