Skip to content

Commit

Permalink
- fixed crash on starting ACS script without level
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jul 8, 2019
1 parent 9332a63 commit c3fedd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/d_net.cpp
Expand Up @@ -2730,6 +2730,12 @@ void Net_DoCommand (int type, uint8_t **stream, int player)
// Used by DEM_RUNSCRIPT, DEM_RUNSCRIPT2, and DEM_RUNNAMEDSCRIPT
static void RunScript(uint8_t **stream, AActor *pawn, int snum, int argn, int always)
{
if (pawn == nullptr)
{
// Scripts can be invoked without a level loaded, e.g. via puke(name) CCMD in fullscreen console
return;
}

int arg[4] = { 0, 0, 0, 0 };
int i;

Expand Down

0 comments on commit c3fedd4

Please sign in to comment.