comparison mm7_6.cpp @ 1826:bdac32c645c5

Changing arrays in class Player to std::array
author Grumpy7
date Wed, 09 Oct 2013 09:08:15 +0200
parents 0c4d3c6a9d5a
children 35c1e4ff6ba7
comparison
equal deleted inserted replaced
1825:23deb6b09c8c 1826:bdac32c645c5
435 ++v6; 435 ++v6;
436 if ( v6 > &pParty->pPartyBuffs[PARTY_BUFF_WIZARD_EYE] ) 436 if ( v6 > &pParty->pPartyBuffs[PARTY_BUFF_WIZARD_EYE] )
437 { 437 {
438 v7 = pParty->pPlayers;//[0].pPlayerBuffs; 438 v7 = pParty->pPlayers;//[0].pPlayerBuffs;
439 v8 = 0; 439 v8 = 0;
440 v9 = v7->pPlayerBuffs; 440 v9 = v7->pPlayerBuffs.data();
441 while ( v9->uExpireTime <= 0i64 ) 441 while ( v9->uExpireTime <= 0i64 )
442 { 442 {
443 ++v8; 443 ++v8;
444 ++v9; 444 ++v9;
445 if ( v8 >= 24 ) 445 if ( v8 >= 24 )
446 { 446 {
447 ++v7; 447 ++v7;
448 if ( v7 <= &pParty->pPlayers[3] ) 448 if ( v7 <= &pParty->pPlayers[3] )
449 { 449 {
450 v8 = 0; 450 v8 = 0;
451 v9 = v7->pPlayerBuffs; 451 v9 = v7->pPlayerBuffs.data();
452 } 452 }
453 else 453 else
454 return 0; 454 return 0;
455 } 455 }
456 } 456 }