mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +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;
|
||||
script = Scripts;
|
||||
while (true)
|
||||
while (script)
|
||||
{
|
||||
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
|
||||
DLevelScript *next = NULL;
|
||||
arc << scriptcount;
|
||||
Scripts = NULL;
|
||||
LastScript = NULL;
|
||||
for (int i = 0; i < scriptcount; i++)
|
||||
{
|
||||
arc << Scripts;
|
||||
|
|
Loading…
Reference in a new issue