diff options
| author | D G Turner | 2019-10-19 18:47:34 +0100 | 
|---|---|---|
| committer | D G Turner | 2019-10-19 18:47:34 +0100 | 
| commit | b0ed255b391b23ad0126e030f52a53783f4004c0 (patch) | |
| tree | a3526dc90b378c625127788320df7b447012e4b2 /engines/cruise/script.cpp | |
| parent | 30c11071c4abc13383db399ad42a4fb367edfc48 (diff) | |
| download | scummvm-rg350-b0ed255b391b23ad0126e030f52a53783f4004c0.tar.gz scummvm-rg350-b0ed255b391b23ad0126e030f52a53783f4004c0.tar.bz2 scummvm-rg350-b0ed255b391b23ad0126e030f52a53783f4004c0.zip  | |
CRUISE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/cruise/script.cpp')
| -rw-r--r-- | engines/cruise/script.cpp | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/cruise/script.cpp b/engines/cruise/script.cpp index aee3e8b846..f4593a1d36 100644 --- a/engines/cruise/script.cpp +++ b/engines/cruise/script.cpp @@ -264,6 +264,8 @@ int32 opcodeType2() {  	}  	break; +	default: +		break;  	}  	return 0; @@ -313,6 +315,9 @@ int32 opcodeType4() {		// test  		if (var2 >= var1)  			boolVar = 1;  		break; + +	default: +		break;  	}  	pushVar(boolVar); @@ -398,6 +403,9 @@ int32 opcodeType5() {  	case 7:  		currentScriptPtr->scriptOffset = newSi;	//always  		break; + +	default: +		break;  	}  	return (0); @@ -441,6 +449,8 @@ int32 opcodeType3()	{	// math  		pushVar(pop2 & pop1);  		return (0); +	default: +		break;  	}  	return 0;  | 
