diff options
author | Max Horn | 2010-10-15 12:18:19 +0000 |
---|---|---|
committer | Max Horn | 2010-10-15 12:18:19 +0000 |
commit | 550073ee049ba30d84cb76c82fb18c045b07569f (patch) | |
tree | 0b67327d8f27969c6a6ebd1971fafee6cd7b70d9 /engines/sword25/gfx/animationresource.cpp | |
parent | 2b5de8c8921d8ec012c689597870e5ae781e3b81 (diff) | |
download | scummvm-rg350-550073ee049ba30d84cb76c82fb18c045b07569f.tar.gz scummvm-rg350-550073ee049ba30d84cb76c82fb18c045b07569f.tar.bz2 scummvm-rg350-550073ee049ba30d84cb76c82fb18c045b07569f.zip |
SWORD25: Do not use Kernel::GetService directly anymore
svn-id: r53477
Diffstat (limited to 'engines/sword25/gfx/animationresource.cpp')
-rw-r--r-- | engines/sword25/gfx/animationresource.cpp | 3 |
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 |