Buttons no longer click on when already on. Buttons now play sound when clicking off.

This commit is contained in:
Hax52
2015-06-24 13:52:56 -05:00
committed by hax52
parent d83c9f194f
commit 9f1d1c058f
5 changed files with 58 additions and 10 deletions
+1 -1
View File
@@ -490,7 +490,7 @@ static int tolua_cWorld_ScheduleTask(lua_State * tolua_S)
auto task = std::make_shared<cLuaScheduledWorldTask>(*Plugin, FnRef);
Plugin->AddResettable(task);
World->ScheduleTask(DelayTicks, task);
World->ScheduleTask(DelayTicks, static_cast<cWorld::cTaskPtr>(task));
return 0;
}