diff options
| -rw-r--r-- | scumm/charset.cpp | 6 | ||||
| -rw-r--r-- | scumm/charset.h | 2 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/scumm/charset.cpp b/scumm/charset.cpp index f1c87c8d48..b596a38d96 100644 --- a/scumm/charset.cpp +++ b/scumm/charset.cpp @@ -395,7 +395,7 @@ CharsetRendererNut::CharsetRendererNut(Scumm *vm)  {  	_current = 0; -	for (int i = 0; i < 4; i++) { +	for (int i = 0; i < 5; i++) {  		char fontname[256];  		sprintf(fontname, "font%d.nut", i);  		_fr[i] = new NutRenderer(_vm); @@ -408,13 +408,13 @@ CharsetRendererNut::CharsetRendererNut(Scumm *vm)  CharsetRendererNut::~CharsetRendererNut()  { -	for (int i = 0; i < 4; i++) +	for (int i = 0; i < 5; i++)  		delete _fr[i];  }  void CharsetRendererNut::setCurID(byte id)  { -	assert(id < 4); +	assert(id < 5);  	_curId = id;  	_current = _fr[id];  } diff --git a/scumm/charset.h b/scumm/charset.h index b5ad8cf5a5..3116f02572 100644 --- a/scumm/charset.h +++ b/scumm/charset.h @@ -108,7 +108,7 @@ class CharsetRendererNut : public CharsetRenderer {  protected:  	int getCharWidth(byte chr); -	NutRenderer *_fr[4]; +	NutRenderer *_fr[5];  	NutRenderer *_current;  public: | 
