File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/System
Generals/Code/GameEngine/Source/GameLogic/System Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -1412,12 +1412,15 @@ void GameLogic::startNewGame( Bool saveGame )
1412
1412
if (count)
1413
1413
{
1414
1414
ScriptList *pSL = TheSidesList->getSideInfo (0 )->getScriptList ();
1415
- Script *next = scripts[0 ]->getScript ();
1416
- while (next)
1415
+ if (pSL != NULL )
1417
1416
{
1418
- Script *dupe = next->duplicate ();
1419
- pSL->addScript (dupe, 0 );
1420
- next = next->getNext ();
1417
+ Script *next = scripts[0 ]->getScript ();
1418
+ while (next)
1419
+ {
1420
+ Script *dupe = next->duplicate ();
1421
+ pSL->addScript (dupe, 0 );
1422
+ next = next->getNext ();
1423
+ }
1421
1424
}
1422
1425
}
1423
1426
for (Int i=0 ; i<count; ++i)
Original file line number Diff line number Diff line change @@ -1574,12 +1574,15 @@ void GameLogic::startNewGame( Bool loadingSaveGame )
1574
1574
if (count)
1575
1575
{
1576
1576
ScriptList *pSL = TheSidesList->getSideInfo (0 )->getScriptList ();
1577
- Script *next = scripts[0 ]->getScript ();
1578
- while (next)
1577
+ if (pSL != NULL )
1579
1578
{
1580
- Script *dupe = next->duplicate ();
1581
- pSL->addScript (dupe, 0 );
1582
- next = next->getNext ();
1579
+ Script *next = scripts[0 ]->getScript ();
1580
+ while (next)
1581
+ {
1582
+ Script *dupe = next->duplicate ();
1583
+ pSL->addScript (dupe, 0 );
1584
+ next = next->getNext ();
1585
+ }
1583
1586
}
1584
1587
}
1585
1588
for (Int i=0 ; i<count; ++i)
You can’t perform that action at this time.
0 commit comments