aboutsummaryrefslogtreecommitdiff
path: root/saga/actor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/actor.cpp')
-rw-r--r--saga/actor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp
index 4d39131b89..aeb977f525 100644
--- a/saga/actor.cpp
+++ b/saga/actor.cpp
@@ -514,8 +514,10 @@ ObjectData *Actor::getObj(uint16 objId) {
ActorData *Actor::getActor(uint16 actorId) {
ActorData *actor;
- if (!validActorId(actorId))
- error("Actor::getActor Wrong actorId 0x%X", actorId);
+ if (!validActorId(actorId)) {
+ warning("Actor::getActor Wrong actorId 0x%X", actorId);
+ assert(0);
+ }
if (actorId == ID_PROTAG) {
if (_protagonist == NULL) {