Skip to content

Commit

Permalink
fix: Use fixed way to detect Datamodel state
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixeluted committed Oct 19, 2024
1 parent 97cd8e2 commit f809a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RobloxManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ void RobloxManager::SetCurrentDataModel(const RBX::DataModelType &dataModelType,
std::lock_guard lock{__datamodelModificationMutex};
if (this->m_bInitialized) {
const auto logger = Logger::GetSingleton();
if (dataModel && !dataModel->m_bIsOpen) {
if (dataModel && !IsDataModelOpen(dataModel)) {
Communication::GetSingleton()->OnDataModelUpdated(dataModelType, false);
logger->PrintWarning(RbxStu::RobloxManager,
std::format("Attempted to change the current DataModel of type {} but the provided "
Expand Down

0 comments on commit f809a77

Please sign in to comment.