Skip to content
Permalink
Browse files

- fixed crash on starting ACS script without level

  • Loading branch information...
alexey-lysiuk committed Jul 8, 2019
1 parent 9332a63 commit c3fedd421881b757be7417bb3a130fcc9936e39c
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/d_net.cpp
@@ -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;

0 comments on commit c3fedd4

Please sign in to comment.
You can’t perform that action at this time.