Ticket #9120: groovie_uninitialized_variable_warnings.patch

File groovie_uninitialized_variable_warnings.patch, 429 bytes (added by Templier, 14 years ago)

Patch for groovie engine

  • engines/groovie/cell.cpp

     
    749749const int8 depths[] = { 1, 1, 1, 2, 1, 1, 2, 2, 1, 2, 2, 2, 3, 2, 2, 3, 3, 2, 3, 3, 3 };
    750750
    751751int16 CellGame::calcMove(int8 color, uint16 depth) {
    752         int result;
     752        int result = 0;
    753753
    754754        _flag1 = false;
    755755        ++_moveCount;