From 5f9e37500ae0ae7e26b83bc6d6aeae9643401b93 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 18 Jun 2018 10:05:14 +0000 Subject: [PATCH] * (bugfix) Fixed stack overflow that could happen, I created this bug the other day when fixing another bug. "that's programming!" git-svn-id: svn://rtsoft.com/rtsvn/projects/RTDink@1634 353e56fe-9613-0410-8469-b96ad8e6f29c --- source/dink/dink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/dink/dink.cpp b/source/dink/dink.cpp index 031ea44..7ecbd72 100644 --- a/source/dink/dink.cpp +++ b/source/dink/dink.cpp @@ -2096,12 +2096,14 @@ bool ReloadSequence(int seqID, int frame, bool bScanOnly) //but Dink HD doesn't due to how it has to have the ability to re-load all graphic data at any point for quick saves. So we're going to "forget" the amount //we reserved previously, and reallocate it + //force frames to get recalculated completely g_dglos.g_seq[seqID].m_bDidFileScan = false; g_dglos.g_seq[seqID].last = 0; g_dglos.g_seq[seqID].s = -1; g_dglos.g_seq[seqID].m_spaceAllowed = 0; g_dglos.g_seq[seqID].frame[1] = 0; + g_dglos.g_seq[seqID].m_bFrameSetUsed = false; return ReloadSequence(seqID, frame, bScanOnly); }