We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cac6fd commit 6a82b1eCopy full SHA for 6a82b1e
src/legacy/api/EventAPI.cpp
@@ -562,7 +562,9 @@ void EnableEventListener(int eventId) {
562
Actor* source = nullptr;
563
if (ev.source().isEntitySource()) {
564
source = ll::service::getLevel()->fetchEntity(ev.source().getDamagingEntityUniqueID());
565
- if (ev.source().isChildEntitySource()) source = source->getOwner();
+ if (source) {
566
+ if (ev.source().isChildEntitySource()) source = source->getOwner();
567
+ }
568
}
569
570
CallEventUncancelable(
0 commit comments