diff options
-rw-r--r-- | saga/actor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp index f60c4cc293..416f3d1aa6 100644 --- a/saga/actor.cpp +++ b/saga/actor.cpp @@ -318,7 +318,7 @@ bool Actor::loadActorResources(ActorData *actor) { debug(9, "Frame resource contains %d frames (res length is %d)", framesCount, resourceLength); framesPointer = (ActorFrameSequence *)malloc(sizeof(ActorFrameSequence) * framesCount); - if (framesPointer == NULL) { + if (framesPointer == NULL && framesCount != 0) { memoryError("Actor::loadActorResources"); } |