aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/cge2_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge2/cge2_main.cpp')
-rw-r--r--engines/cge2/cge2_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp
index d9d22c84b1..9a736efdf0 100644
--- a/engines/cge2/cge2_main.cpp
+++ b/engines/cge2/cge2_main.cpp
@@ -370,7 +370,7 @@ void CGE2Engine::loadScript(const char *fname) {
int n = _spare->count();
if (_spare->locate(_sprite->_ref) == nullptr)
- _spare->store(_sprite);
+ _spare->dispose(_sprite);
_sprite = nullptr;
if (_spare->count() == n)
error("Durplicated reference! %s", SpN);