This commit is contained in:
ephphatha 2022-01-22 18:02:58 -05:00 committed by Anders Jenbo
commit 000a04ad4d
3 changed files with 4 additions and 5 deletions

View file

@ -948,10 +948,9 @@ void DiabloInit()
for (size_t i = 0; i < QUICK_MESSAGE_OPTIONS; i++) {
auto &messages = sgOptions.Chat.szHotKeyMsgs[i];
if (messages.size() > 0) {
continue;
if (messages.empty()) {
messages.emplace_back(_(QuickMessages[i].message));
}
messages.emplace_back(_(QuickMessages[i].message));
}
#ifndef USE_SDL1

View file

@ -411,7 +411,7 @@ OptionEntryFlags OptionEntryBase::GetFlags() const
}
void OptionEntryBase::SetValueChangedCallback(std::function<void()> callback)
{
this->callback = callback;
this->callback = std::move(callback);
}
void OptionEntryBase::NotifyValueChanged()
{

View file

@ -12,7 +12,7 @@
namespace devilution {
enum class StartUpGameMode {
/** @brief If hellfire is present, asks the user what game he wants to start. */
/** @brief If hellfire is present, asks the user what game they want to start. */
Ask = 0,
Hellfire = 1,
Diablo = 2,