- Fixed uninitialized variable in A_AlertMonsters.

This commit is contained in:
Braden Obrzut 2013-08-27 20:42:35 -04:00
parent 0fb37ca5f1
commit 0a16e9a256

View file

@ -150,7 +150,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_AlertMonsters)
ACTION_PARAM_FIXED(maxdist, 0);
ACTION_PARAM_INT(Flags, 1);
AActor * target;
AActor * target = NULL;
AActor * emitter = self;
if (self->player != NULL || (Flags & AMF_TARGETEMITTER))