aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/game.cpp')
-rw-r--r--engines/sci/engine/game.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp
index 3a0d02b4cf..97843041ed 100644
--- a/engines/sci/engine/game.cpp
+++ b/engines/sci/engine/game.cpp
@@ -589,8 +589,7 @@ int game_init(EngineState *s) {
s->parser_valid = 0; // Invalidate parser
s->parser_event = NULL_REG; // Invalidate parser event
- s->synonyms = NULL;
- s->synonyms_nr = 0; // No synonyms
+ s->_synonyms.clear(); // No synonyms
// Initialize send_calls buffer
@@ -664,9 +663,7 @@ int game_exit(EngineState *s) {
delete s->seg_manager;
- free(s->synonyms);
- s->synonyms = NULL;
- s->synonyms_nr = 0;
+ s->_synonyms.clear();
sciprintf("Freeing miscellaneous data...\n");