fix crash when TM is disabled

This commit is contained in:
thrust26 2019-05-31 16:26:52 +02:00
parent 98cb5a4ecd
commit 7b56497963
1 changed files with 3 additions and 0 deletions

View File

@ -223,6 +223,9 @@ uInt32 RewindManager::windStates(uInt32 numStates, bool unwind)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
string RewindManager::saveAllStates() string RewindManager::saveAllStates()
{ {
if (getLastIdx() == 0)
return "Nothing to save";
try try
{ {
ostringstream buf; ostringstream buf;