Skip to content

Commit

Permalink
fix username crash in infolayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Jan 21, 2024
1 parent e92bddd commit 44af18f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/InfoLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ class $modify(BIInfoLayer, InfoLayer) {
}

void onMore(CCObject* sender) {
if(this->m_level->m_accountID == 0) {
UnregisteredProfileLayer::displayProfile(this->m_level->m_userID, this->m_level->m_creatorName);
if(!this->m_level || this->m_level->m_accountID > 0) {
InfoLayer::onMore(sender);
return;
}

InfoLayer::onMore(sender);
UnregisteredProfileLayer::displayProfile(this->m_level->m_userID, this->m_level->m_creatorName);
}

void onLevelInfo(CCObject* sender) {
Expand Down

0 comments on commit 44af18f

Please sign in to comment.