(svn r22621) -Fix: When asking the user to confirm an unsafe unpausing, there is no need to execute a command if 'no' is choosed. This also prevents crashing when clicking unpause while the confirm window is shown.
This commit is contained in:
		@@ -125,7 +125,9 @@ CommandCost CmdDecreaseLoan(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
 | 
			
		||||
 */
 | 
			
		||||
static void AskUnsafeUnpauseCallback(Window *w, bool confirmed)
 | 
			
		||||
{
 | 
			
		||||
	DoCommandP(0, PM_PAUSED_ERROR, confirmed ? 0 : 1, CMD_PAUSE);
 | 
			
		||||
	if (confirmed) {
 | 
			
		||||
		DoCommandP(0, PM_PAUSED_ERROR, 0, CMD_PAUSE);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user