aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index 9de4942bb8..50bf26d51c 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -199,7 +199,7 @@ Common::Error SciEngine::go() {
char resource_dir[MAXPATHLEN+1] = "";
getcwd(resource_dir, MAXPATHLEN); /* Store resource directory */
- resmgr = scir_new_resource_manager(resource_dir, res_version, 256 * 1024);
+ resmgr = new ResourceManager(res_version, 256 * 1024);
if (!resmgr) {
printf("No resources found in '%s'.\nAborting...\n",
@@ -300,7 +300,7 @@ Common::Error SciEngine::go() {
free(gamestate->work_dir);
free(gamestate);
- scir_free_resource_manager(resmgr);
+ delete resmgr;
close_console_file();