mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-20 07:01:27 +02:00
Fix intermittent failure to call event handlers
The wrong value got duplicated in 87b81ceb45
, oops. Makes you wonder how the script in the commit message worked at all.
This commit is contained in:
@@ -416,7 +416,7 @@ bool CommandInterface::HandleEvent(const GameControllerEvent &event)
|
||||
{
|
||||
it->Push(L);
|
||||
++it;
|
||||
lua_pushvalue(L, 1);
|
||||
lua_pushvalue(L, -1);
|
||||
int numArgs = pushGameControllerEvent(L, event);
|
||||
int callret = tpt_lua_pcall(L, numArgs, 1, 0, std::visit([](auto &event) {
|
||||
return event.traits;
|
||||
|
Reference in New Issue
Block a user