Changeset 186 for trunk/src


Ignore:
Timestamp:
10/23/2008 09:01:12 PM (4 years ago)
Author:
guyru
Message:
  • fixed rare case where Roll button will not work (m_skiproll not initialized).
  • free memeory allocated to about dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MainFrame.cpp

    r185 r186  
    4444 
    4545 //include the images for the dice        
    46  namespace dice { 
    47  #include "one.xpm" 
    48  #include "two.xpm" 
    49  #include "three.xpm" 
    50  #include "four.xpm" 
    51  #include "five.xpm" 
    52  #include "six.xpm" 
    53  } // namespace dice 
     46namespace dice { 
     47#include "one.xpm" 
     48#include "two.xpm" 
     49#include "three.xpm" 
     50#include "four.xpm" 
     51#include "five.xpm" 
     52#include "six.xpm" 
     53} // namespace dice 
    5454 
    5555#include "icon32.xpm" 
     
    126126        m_yahtzeebonus = false; 
    127127        m_numofplaysleft = 13; 
    128  
     128        m_skiproll = false; // the roll button hasn't been pressed yet, no need for skipping 
    129129} 
    130130 
     
    387387        about::AboutDialog *about = new about::AboutDialog(this); 
    388388        about->ShowModal(); 
     389        delete about; 
    389390} 
    390391 
Note: See TracChangeset for help on using the changeset viewer.