Browse Source

Merge pull request #1146 from galaxyhaxz/Monbug

Bugfix note to M2MStartKill
pull/109/head
Robin Eklind 7 years ago committed by GitHub
parent
commit
287c1c79b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/monster.cpp

2
Source/monster.cpp

@ -1696,6 +1696,8 @@ void M2MStartKill(int i, int mid)
if ((DWORD)i >= MAXMONSTERS) {
app_fatal("M2MStartKill: Invalid monster (attacker) %d", i);
}
if ((DWORD)i >= MAXMONSTERS) { /// BUGFIX: should check `mid`
app_fatal("M2MStartKill: Invalid monster (killed) %d", mid);
}
if (!monster[i].MType)

Loading…
Cancel
Save