Slightly reduced internal reliance on specific module backends

This commit is contained in:
Alex Szpakowski
2013-08-03 16:30:37 -03:00
parent 2106ff2403
commit 3e57cfd174
7 changed files with 39 additions and 21 deletions
+1 -2
View File
@@ -106,8 +106,7 @@ void LuaThread::onError()
if (error.empty())
return;
// FIXME: We shouldn't specify any particular Event module implementation.
event::Event *event = (event::Event *) Module::getInstance("love.event.sdl");
event::Event *event = (event::Event *) Module::findInstance("love.event.");
if (!event)
return;