Use viewscreen_savegamest instead of viewscreen_optionst

develop
Ben Lubar 2018-08-26 19:05:44 -05:00
parent 4e690df96a
commit a672ffcb95
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
2 changed files with 2 additions and 2 deletions

@ -73,7 +73,6 @@ using namespace DFHack;
#include "df/viewscreen_loadgamest.h"
#include "df/viewscreen_new_regionst.h"
#include "df/viewscreen_savegamest.h"
#include "df/viewscreen_optionst.h"
#include <df/graphic.h>
#include <stdio.h>
@ -2041,7 +2040,7 @@ void Core::doUpdate(color_ostream &out, bool first_update)
// Execute per-frame handlers
onUpdate(out);
if (df::global::ui->main.autosave_request || strict_virtual_cast<df::viewscreen_optionst>(screen))
if (df::global::ui->main.autosave_request || strict_virtual_cast<df::viewscreen_savegamest>(screen))
{
doSave(out);
}

@ -52,6 +52,7 @@ namespace DFHack
class DFHACK_EXPORT PersistentDataItem {
size_t index;
std::shared_ptr<Persistence::LegacyData> data;
public:
static const int NumInts = 7;