Added an assertion to catch buffer overruns in actorTalk().

svn-id: r3631
This commit is contained in:
Marcus Comstedt 2002-02-25 23:00:32 +00:00
parent 1247c1984f
commit de5799b13c

View File

@ -971,6 +971,7 @@ void Scumm::actorTalk() {
_msgPtrToAdd = charset._buffer;
_messagePtr = addMessageToStack(_messagePtr);
assert(_msgPtrToAdd - charset._buffer < sizeof(charset._buffer));
if (_actorToPrintStrFor==0xFF) {
if (!_keepText)