mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 13:17:41 +02:00
fix segfaults consistently set component problems
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
@ -45,6 +45,7 @@
|
||||
#include "OneSixVersionFormat.h"
|
||||
#include "VersionFile.h"
|
||||
#include "meta/Version.h"
|
||||
#include "minecraft/Component.h"
|
||||
#include "minecraft/PackProfile.h"
|
||||
|
||||
#include <assert.h>
|
||||
@ -438,14 +439,14 @@ void Component::setUpdateAction(UpdateAction action)
|
||||
m_updateAction = action;
|
||||
}
|
||||
|
||||
std::optional<UpdateAction> Component::getUpdateAction()
|
||||
UpdateAction Component::getUpdateAction()
|
||||
{
|
||||
return m_updateAction;
|
||||
}
|
||||
|
||||
void Component::clearUpdateAction()
|
||||
{
|
||||
m_updateAction.reset();
|
||||
m_updateAction = UpdateAction{ UpdateActionNone{} };
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug d, const Component& comp)
|
||||
|
Reference in New Issue
Block a user