aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/animationresource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/gfx/animationresource.cpp')
-rw-r--r--engines/sword25/gfx/animationresource.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sword25/gfx/animationresource.cpp b/engines/sword25/gfx/animationresource.cpp
index 93b5934041..96a93f1890 100644
--- a/engines/sword25/gfx/animationresource.cpp
+++ b/engines/sword25/gfx/animationresource.cpp
@@ -54,8 +54,7 @@ AnimationResource::AnimationResource(const Common::String &filename) :
Common::XMLParser(),
_valid(false) {
// Get a pointer to the package manager
- Kernel *pKernel = Kernel::GetInstance();
- _pPackage = static_cast<PackageManager *>(pKernel->GetService("package"));
+ _pPackage = Kernel::GetInstance()->GetPackage();
BS_ASSERT(_pPackage);
// Switch to the folder the specified Xml fiile is in