mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
STARTREK: Missing null-terminator with animations
This commit is contained in:
parent
a636aacf51
commit
296bad07b8
@ -607,9 +607,10 @@ void StarTrekEngine::drawActorToScreen(Actor *actor, const Common::String &_anim
|
||||
actor->animFile->seek(16, SEEK_SET);
|
||||
actor->frameToStartNextAnim = actor->animFile->readUint16() + _frameIndex;
|
||||
|
||||
char firstFrameFilename[10];
|
||||
char firstFrameFilename[11];
|
||||
actor->animFile->seek(0, SEEK_SET);
|
||||
actor->animFile->read(firstFrameFilename, 10);
|
||||
firstFrameFilename[10] = '\0';
|
||||
|
||||
Sprite *sprite = &actor->sprite;
|
||||
if (addSprite)
|
||||
|
Loading…
Reference in New Issue
Block a user