aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/package
diff options
context:
space:
mode:
authorMax Horn2010-10-15 12:18:19 +0000
committerMax Horn2010-10-15 12:18:19 +0000
commit550073ee049ba30d84cb76c82fb18c045b07569f (patch)
tree0b67327d8f27969c6a6ebd1971fafee6cd7b70d9 /engines/sword25/package
parent2b5de8c8921d8ec012c689597870e5ae781e3b81 (diff)
downloadscummvm-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/package')
-rw-r--r--engines/sword25/package/packagemanager_script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/package/packagemanager_script.cpp b/engines/sword25/package/packagemanager_script.cpp
index cfcea55944..84cfc45cae 100644
--- a/engines/sword25/package/packagemanager_script.cpp
+++ b/engines/sword25/package/packagemanager_script.cpp
@@ -46,7 +46,7 @@ using namespace Lua;
static PackageManager *getPM() {
Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- PackageManager *pPM = static_cast<PackageManager *>(pKernel->GetService("package"));
+ PackageManager *pPM = pKernel->GetPackage();
BS_ASSERT(pPM);
return pPM;
}
@@ -201,7 +201,7 @@ static const luaL_reg PACKAGE_FUNCTIONS[] = {
bool PackageManager::registerScriptBindings() {
Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- ScriptEngine *pScript = static_cast<ScriptEngine *>(pKernel->GetService("script"));
+ ScriptEngine *pScript = pKernel->GetScript();
BS_ASSERT(pScript);
lua_State *L = static_cast<lua_State *>(pScript->getScriptObject());
BS_ASSERT(L);