From 852e65bd02bc1278386d79ca68f81e3d15e9fa43 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 20 Mar 2013 07:27:42 +0100 Subject: HOPKINS: Remove setParent() from Globals --- engines/hopkins/globals.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'engines/hopkins/globals.cpp') diff --git a/engines/hopkins/globals.cpp b/engines/hopkins/globals.cpp index 6c10807d8e..fb0dbf36c4 100644 --- a/engines/hopkins/globals.cpp +++ b/engines/hopkins/globals.cpp @@ -62,7 +62,9 @@ const int HOPKINS_PERSO_2[] = { 0, 2, 0, 2, 0, 2, 0, 1, 0, 2, 0, 2 }; -Globals::Globals() { +Globals::Globals(HopkinsEngine *vm) { + _vm = vm; + // Set up the special g_PTRNUL variable g_PTRNUL = (byte *)malloc(16); strcpy((char *)g_PTRNUL, "POINTERNULL"); @@ -187,10 +189,6 @@ Globals::~Globals() { free(g_PTRNUL); } -void Globals::setParent(HopkinsEngine *vm) { - _vm = vm; -} - void Globals::setConfig() { // CHECKME: Should be in Globals() but it doesn't work // The Polish version is a translation of the English version. The filenames are the same. -- cgit v1.2.3