diff options
Diffstat (limited to 'engines/lastexpress')
-rw-r--r-- | engines/lastexpress/entities/entity.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/lastexpress/entities/entity.cpp b/engines/lastexpress/entities/entity.cpp index 07e82d296e..170248de52 100644 --- a/engines/lastexpress/entities/entity.cpp +++ b/engines/lastexpress/entities/entity.cpp @@ -51,6 +51,9 @@ EntityData::EntityCallData::~EntityCallData() { } void EntityData::EntityCallData::syncString(Common::Serializer &s, Common::String &string, uint length) const { + assert(length <= 13); + assert(string.size() <= 13); + char seqName[13]; memset(&seqName, 0, length); @@ -972,5 +975,4 @@ bool Entity::timeCheckPlaySoundUpdatePosition(TimeValue timeValue, uint ¶met return false; } - } // End of namespace LastExpress |