It'll actually have the opposite effect, Enjay. Basically, the code currently looks like this: (Note: Not an actual programming language... but don't you wish it was?!)
Summon command:
Check for parameter
None? Print usage and return
Search Actors list using parameter
Match not found? Print error and return
Get Player's current position and facing
CRASH!
Spawn matching Actor 128 units in front of Player and return
The marked line above is where ZDoom presumably crashes when the game is not in a map (and hence there is no Player to look for). So to fix it, the new code would have to do this:
...
Match not found? Print error and return
Not in game? Print error and return
Get Player's current position and facing
...
That translates to a few opcodes in the compiled EXE, thereby making the code MORE ineffecient, because when the code is used properly (i.e. while in a game), the check is unnecessary.
Of course, this actually amounts to, perhaps, a 0.000001% loss of effeciency, but it certainly won't
improve anything.

It'll actually have the opposite effect, Enjay. Basically, the code currently looks like this: (Note: Not an actual programming language... but don't you wish it was?!)
Summon command:
Check for parameter
None? Print usage and return
Search Actors list using parameter
Match not found? Print error and return
Get Player's current position and facing [color=red]CRASH![/color]
Spawn matching Actor 128 units in front of Player and return
The marked line above is where ZDoom presumably crashes when the game is not in a map (and hence there is no Player to look for). So to fix it, the new code would have to do this:
...
Match not found? Print error and return
Not in game? Print error and return
Get Player's current position and facing
...
That translates to a few opcodes in the compiled EXE, thereby making the code MORE ineffecient, because when the code is used properly (i.e. while in a game), the check is unnecessary.
Of course, this actually amounts to, perhaps, a 0.000001% loss of effeciency, but it certainly won't [b]improve[/b] anything. :P