Skip to content

Commit

Permalink
fix: fix crash #1130
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamguxiang committed Mar 19, 2023
1 parent eeb5ded commit fee60aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LiteLoader/include/llapi/mc/WeakStorageEntity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class WeakStorageEntity {
inline Entity* tryUnwrap() {
StackResultStorageEntity ref(*this);
if (!ref._hasValue()) {
return Entity::tryGetFromEntity(ref._getStackRef(), Unknown);
return nullptr;
}
return nullptr;
return Entity::tryGetFromEntity(ref._getStackRef(), Unknown);
}

#undef AFTER_EXTRA
Expand Down

0 comments on commit fee60aa

Please sign in to comment.