mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
DACSThinker can exist with no scripts
This commit is contained in:
parent
e3640b5bf5
commit
5170abfeed
1 changed files with 3 additions and 1 deletions
|
@ -2892,7 +2892,7 @@ void DACSThinker::Serialize (FArchive &arc)
|
||||||
{
|
{
|
||||||
DLevelScript *script;
|
DLevelScript *script;
|
||||||
script = Scripts;
|
script = Scripts;
|
||||||
while (true)
|
while (script)
|
||||||
{
|
{
|
||||||
scriptcount++;
|
scriptcount++;
|
||||||
|
|
||||||
|
@ -2914,6 +2914,8 @@ void DACSThinker::Serialize (FArchive &arc)
|
||||||
// We are running through this list backwards, so the next entry is the last processed
|
// We are running through this list backwards, so the next entry is the last processed
|
||||||
DLevelScript *next = NULL;
|
DLevelScript *next = NULL;
|
||||||
arc << scriptcount;
|
arc << scriptcount;
|
||||||
|
Scripts = NULL;
|
||||||
|
LastScript = NULL;
|
||||||
for (int i = 0; i < scriptcount; i++)
|
for (int i = 0; i < scriptcount; i++)
|
||||||
{
|
{
|
||||||
arc << Scripts;
|
arc << Scripts;
|
||||||
|
|
Loading…
Reference in a new issue