Ticket #9120: gob_uninitialized_variable_warnings.patch

File gob_uninitialized_variable_warnings.patch, 792 bytes (added by Templier, 15 years ago)

Patch for GOB engine

  • engines/gob/draw.cpp

     
    815815}
    816816
    817817int16 Draw::handleCurWin() {
    818         int8 matchNum;
     818        int8 matchNum = 0;
    819819        int16 bestMatch = -1;
    820820
    821821        warning("handleCurWin");
  • engines/gob/hotspots.cpp

     
    16061606int16 Hotspots::findCursor(uint16 x, uint16 y) const {
    16071607        int16 cursor = 0;
    16081608
    1609         int16 deltax;
    1610         int16 deltay;
     1609        int16 deltax = 0;
     1610        int16 deltay = 0;
    16111611       
    16121612        if ( _vm->getGameType() == kGameTypeFascination ) {
    16131613                cursor = curWindow(deltax, deltay);