vector in cardsChance
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
***************************************************************************/
|
||||
#include "cardsvalue.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
CardsValue::CardsValue()
|
||||
{
|
||||
}
|
||||
@@ -568,11 +570,9 @@ vector< vector<int> > CardsValue::calcCardsChance(GameState beRoID, int* playerC
|
||||
int i,j;
|
||||
|
||||
vector< vector<int> > chance(2);
|
||||
vector<int> chance_0(10);
|
||||
vector<int> chance_1(10);
|
||||
|
||||
chance[0] = chance_0;
|
||||
chance[1] = chance_1;
|
||||
chance[0].resize(10);
|
||||
chance[1].resize(10);
|
||||
|
||||
for(i=0;i<10;i++) {
|
||||
chance[0][i] = 0;
|
||||
|
||||
Reference in New Issue
Block a user