diff options
| -rw-r--r-- | engines/sci/console.cpp | 2 | ||||
| -rw-r--r-- | engines/sci/engine/vm.cpp | 4 | 
2 files changed, 2 insertions, 4 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 67e324f078..baf89a5082 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -50,7 +50,7 @@ extern EngineState *g_EngineState;  int debug_sleeptime_factor = 1;  int debug_simulated_key = 0;  bool debug_track_mouse_clicks = false; -bool debug_weak_validations = false; +bool debug_weak_validations = true;  Console::Console(SciEngine *vm) : GUI::Debugger() { diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index 18e1ef7866..3539032760 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -121,15 +121,13 @@ static int validate_variable(reg_t *r, reg_t *stack_base, int type, int max, int  	if (index < 0 || index >= max) {  		char txt[200];  		char tmp[40]; -		sprintf(txt, "[VM] Attempt to use invalid %s variable %04x ", names[type], index); +		sprintf(txt, "[VM] validate_variable(): Attempt to use invalid %s variable %04x ", names[type], index);  		if (max == 0)  			strcat(txt, "(variable type invalid)");  		else {  			sprintf(tmp, "(out of range [%d..%d])", 0, max - 1);  			strcat(txt, tmp);  		} -		sprintf(tmp, " in %s, line %d\n", __FILE__, line); -		strcat(txt, tmp);  		if (debug_weak_validations)  			warning(txt);  | 
