Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix [change_theme] crashing when theme= isn't specified
Leaving theme= unspecified ought to have the same effect as providing it and setting it to an empty string. Without the check for a nil value, however, it would result in a crash like this: 20180519 22:31:54 error scripting/lua: lua/wml-tags.lua:922: bad argument #3 to '__newindex' (string expected, got nil) stack traceback: [C]: in metamethod '__newindex' lua/wml-tags.lua:922: in local 'cmd' lua/wml-utils.lua:145: in field 'handle_event_commands' lua/wml-flow.lua:6: in function <lua/wml-flow.lua:5>
- Loading branch information