mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
Add continue for null hooks
This commit is contained in:
parent
22d138bee2
commit
80e75f2a4a
1 changed files with 1 additions and 0 deletions
|
@ -366,6 +366,7 @@ Result<> Mod::Impl::enable() {
|
|||
for (auto const& hook : m_hooks) {
|
||||
if (!hook) {
|
||||
log::warn("Hook is null in mod \"{}\"", m_info.name());
|
||||
continue;
|
||||
}
|
||||
if (hook->getAutoEnable()) {
|
||||
GEODE_UNWRAP(this->enableHook(hook));
|
||||
|
|
Loading…
Reference in a new issue