aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/preagi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/preagi.cpp')
-rw-r--r--engines/agi/preagi.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agi/preagi.cpp b/engines/agi/preagi.cpp
index e2751cd87b..aff00a75f7 100644
--- a/engines/agi/preagi.cpp
+++ b/engines/agi/preagi.cpp
@@ -82,10 +82,10 @@ void PreAgiEngine::initialize() {
// clear all resources and events
for (int i = 0; i < MAX_DIRECTORY_ENTRIES; i++) {
- memset(&_game.pictures[i], 0, sizeof(struct AgiPicture));
- memset(&_game.sounds[i], 0, sizeof(class AgiSound *)); // _game.sounds contains pointers now
- memset(&_game.dirPic[i], 0, sizeof(struct AgiDir));
- memset(&_game.dirSound[i], 0, sizeof(struct AgiDir));
+ _game.pictures[i].reset();
+ _game.sounds[i] = nullptr; // _game.sounds contains pointers now
+ _game.dirPic[i].reset();
+ _game.dirSound[i].reset();
}
}