diff --git a/Source/error.cpp b/Source/error.cpp index 526c6f5c1..e206a4f1f 100644 --- a/Source/error.cpp +++ b/Source/error.cpp @@ -80,7 +80,7 @@ void InitDiabloMsg(char e) return; } - msgtable[msgcnt] = e; + msgtable[msgcnt] = e; // BUGFIX: missing out-of-bounds check if (msgcnt < (BYTE)sizeof(msgtable)) msgcnt++;