m_CellInfo = (cellStruct**) realloc(m_CellInfo, sizeof(cellStruct*) * rows);
if (m_NumCols != 0) {
int x = rows - 1;
- m_CellInfo[x] = new cellStruct[m_NumCols];
+ m_CellInfo[x] = (cellStruct*) malloc(sizeof(cellStruct) * m_NumCols);
for (int i = 0; i < m_NumCols; i++)
m_CellInfo[x][i].flag = cellFree;
}