aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie/debug.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-09-24 10:58:00 +0000
committerFilippos Karapetis2009-09-24 10:58:00 +0000
commit2dbd096dd5b390c76b7b2ad0bed780eba8b09021 (patch)
tree7651cb5c7645d21b471ea721207cf5eaebe4e20e /engines/groovie/debug.cpp
parent1cc326dda097ce13038c72469009206425266e2d (diff)
downloadscummvm-rg350-2dbd096dd5b390c76b7b2ad0bed780eba8b09021.tar.gz
scummvm-rg350-2dbd096dd5b390c76b7b2ad0bed780eba8b09021.tar.bz2
scummvm-rg350-2dbd096dd5b390c76b7b2ad0bed780eba8b09021.zip
Changed _script to be a pointer, in order to control its creation/destruction, like the rest of the groovie engine parts, and resolve a potential issue that Microsoft claims to be severe (warning C4355, read more here: http://msdn.microsoft.com/en-us/library/3c594ae3.aspx)
svn-id: r44303
Diffstat (limited to 'engines/groovie/debug.cpp')
-rw-r--r--engines/groovie/debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/groovie/debug.cpp b/engines/groovie/debug.cpp
index 606535a993..00eb5c994c 100644
--- a/engines/groovie/debug.cpp
+++ b/engines/groovie/debug.cpp
@@ -30,7 +30,7 @@
namespace Groovie {
Debugger::Debugger(GroovieEngine *vm) :
- _vm (vm), _script(&_vm->_script), _syst(_vm->_system) {
+ _vm (vm), _script(_vm->_script), _syst(_vm->_system) {
// Register the debugger comands
DCmd_Register("step", WRAP_METHOD(Debugger, cmd_step));