aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/xeen/sprites.cpp2
-rw-r--r--engines/xeen/sprites.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp
index ea0400b82f..3555658ea2 100644
--- a/engines/xeen/sprites.cpp
+++ b/engines/xeen/sprites.cpp
@@ -71,11 +71,13 @@ SpriteResource &SpriteResource::operator=(const SpriteResource &src) {
}
void SpriteResource::load(const Common::String &filename) {
+ _filename = filename;
File f(filename);
load(f);
}
void SpriteResource::load(const Common::String &filename, int ccMode) {
+ _filename = filename;
File f(filename, ccMode);
load(f);
}
diff --git a/engines/xeen/sprites.h b/engines/xeen/sprites.h
index ce04c254d4..a86f5ab367 100644
--- a/engines/xeen/sprites.h
+++ b/engines/xeen/sprites.h
@@ -54,6 +54,7 @@ private:
int32 _filesize;
byte *_data;
int _scaledWidth, _scaledHeight;
+ Common::String _filename;
/**
* Load a sprite resource from a stream