diff options
-rw-r--r-- | sword1/objectman.cpp | 2 | ||||
-rw-r--r-- | sword1/objectman.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sword1/objectman.cpp b/sword1/objectman.cpp index f9c392fe01..3e20f615b5 100644 --- a/sword1/objectman.cpp +++ b/sword1/objectman.cpp @@ -157,6 +157,6 @@ void ObjectMan::saveLiveList(uint16 *dest) { memcpy(dest, _liveList, TOTAL_SECTIONS * sizeof(uint16)); } -char *ObjectMan::_errorStr = "Error: Text not found."; +char ObjectMan::_errorStr[] = "Error: Text not found."; } // End of namespace Sword1 diff --git a/sword1/objectman.h b/sword1/objectman.h index 63bf689c26..39f032ad17 100644 --- a/sword1/objectman.h +++ b/sword1/objectman.h @@ -57,7 +57,7 @@ private: static const uint32 _textList[TOTAL_SECTIONS][7]; //a table of pointers to text files uint16 _liveList[TOTAL_SECTIONS]; //which sections are active uint8 *_cptData[TOTAL_SECTIONS]; - static char *_errorStr; + static char _errorStr[]; }; } // End of namespace Sword1 |