fix: fatal error on pack removal when no world open
This commit is contained in:
@@ -253,6 +253,7 @@ void EngineController::reconfigPacks(
|
|||||||
bool hasIndices = false;
|
bool hasIndices = false;
|
||||||
|
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
if (content) {
|
||||||
for (const auto& id : packsToRemove) {
|
for (const auto& id : packsToRemove) {
|
||||||
auto runtime = content->getPackRuntime(id);
|
auto runtime = content->getPackRuntime(id);
|
||||||
if (runtime && runtime->getStats().hasSavingContent()) {
|
if (runtime && runtime->getStats().hasSavingContent()) {
|
||||||
@@ -263,6 +264,7 @@ void EngineController::reconfigPacks(
|
|||||||
ss << id;
|
ss << id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
runnable removeFunc = [=]() {
|
runnable removeFunc = [=]() {
|
||||||
if (controller == nullptr) {
|
if (controller == nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user