aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_play_with_sfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects/actions/action_play_with_sfx.cpp')
-rw-r--r--engines/pink/objects/actions/action_play_with_sfx.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/pink/objects/actions/action_play_with_sfx.cpp b/engines/pink/objects/actions/action_play_with_sfx.cpp
index 9e4767d41d..60ecd2ac9d 100644
--- a/engines/pink/objects/actions/action_play_with_sfx.cpp
+++ b/engines/pink/objects/actions/action_play_with_sfx.cpp
@@ -22,7 +22,6 @@
#include "action_play_with_sfx.h"
#include <pink/archive.h>
-#include <common/debug.h>
namespace Pink {
@@ -40,11 +39,13 @@ void Pink::ActionPlayWithSfx::toConsole() {
}
void Pink::ActionSfx::deserialize(Pink::Archive &archive) {
- archive >> _sfx >> _volume >> _frame;
+ archive >> _frame >> _volume >> _sfx;
+ _action = (ActionPlayWithSfx*) archive.readObject();
+
}
void Pink::ActionSfx::toConsole() {
- debug("\t\tActionSfx: _name = %s, _volume = %u, _frame = %u");
+ debug("\t\tActionSfx: _sfx = %s, _volume = %u, _frame = %u", _sfx.c_str(), _volume, _frame);
}
} // End of namespace Pink \ No newline at end of file