From ac247c9b94ec49dac4a5febf94bab2c76e7ed114 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 31 Mar 2005 21:39:31 +0000 Subject: Started to move some resource related code into a new class ResourceManager (hypothetic goal for the future: use ResourceManager in ScummEx) svn-id: r17311 --- scumm/wiz_he.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scumm/wiz_he.cpp') diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp index 83979cbe50..6f8a775049 100644 --- a/scumm/wiz_he.cpp +++ b/scumm/wiz_he.cpp @@ -1424,7 +1424,7 @@ void ScummEngine_v90he::processWizImage(const WizParameters *params) { f.seek(0, SEEK_SET); byte *p = createResource(rtImage, params->img.resNum, size); if (f.read(p, size) != size) { - nukeResource(rtImage, params->img.resNum); + res.nukeResource(rtImage, params->img.resNum); warning("i/o error when reading '%s'", params->filename); VAR(VAR_GAME_LOADED) = -2; VAR(119) = -2; -- cgit v1.2.3