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