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/math | |
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/math')
-rw-r--r-- | engines/sword25/math/geometry_script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/math/geometry_script.cpp b/engines/sword25/math/geometry_script.cpp index b96fe90e66..dc89428d95 100644 --- a/engines/sword25/math/geometry_script.cpp +++ b/engines/sword25/math/geometry_script.cpp @@ -364,7 +364,7 @@ static int r_setY(lua_State *L) { } static void drawPolygon(const Polygon &polygon, uint color, const Vertex &offset) { - GraphicEngine *pGE = static_cast<GraphicEngine *>(Kernel::GetInstance()->GetService("gfx")); + GraphicEngine *pGE = Kernel::GetInstance()->GetGfx(); BS_ASSERT(pGE); for (int i = 0; i < polygon.vertexCount - 1; i++) @@ -476,7 +476,7 @@ static const luaL_reg WALKREGION_METHODS[] = { bool Geometry::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); |