Upgraded Filesave version for RefIDs

Fix logic issue
iwyu_full
florent.teppe 2 years ago
parent dc21df97c8
commit afed7e60ef

@ -792,7 +792,7 @@ namespace MWGui
int incr = next ? 1 : -1;
bool found = false;
const ESM::RefId* lastId = nullptr;
const ESM::RefId* lastId = &ESM::RefId::sEmpty;
if (selected != -1)
lastId = &model.getItem(selected).mBase.getCellRef().getRefId();
ItemModel::ModelIndex cycled = selected;

@ -6,7 +6,7 @@
namespace ESM
{
int SavedGame::sCurrentFormat = 21;
int SavedGame::sCurrentFormat = 22;
void SavedGame::load(ESMReader& esm)
{

Loading…
Cancel
Save