Add continue for null hooks

This commit is contained in:
alk 2023-04-09 18:30:48 +03:00 committed by GitHub
parent 22d138bee2
commit 80e75f2a4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));