From c96b4f692a9cfaa5e5f374813045b97c9f33fa7d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 9 Dec 2008 19:53:01 +0000 Subject: SCUMM: Turned two former warnings into errors -- I never got reports on this warnings, with some luck we'll never get reports on the errors, too. If we get them, I'll deal with them :) svn-id: r35292 --- engines/scumm/object.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/scumm/object.cpp b/engines/scumm/object.cpp index eaffbd04bb..f815d5bfb8 100644 --- a/engines/scumm/object.cpp +++ b/engines/scumm/object.cpp @@ -23,7 +23,6 @@ * */ - #include "scumm/scumm.h" #include "scumm/actor.h" #include "scumm/bomp.h" @@ -145,14 +144,14 @@ void ScummEngine::setOwnerOf(int obj, int owner) { ss = &vm.slot[_currentScript]; if (ss->where == WIO_INVENTORY) { if (ss->number < _numInventory && _inventory[ss->number] == obj) { - warning("Odd setOwnerOf case #1: Please report to Fingolfin where you encountered this"); + error("Odd setOwnerOf case #1: Please report to Fingolfin where you encountered this"); putOwner(obj, 0); runInventoryScript(arg); stopObjectCode(); return; } if (ss->number == obj) - warning("Odd setOwnerOf case #2: Please report to Fingolfin where you encountered this"); + error("Odd setOwnerOf case #2: Please report to Fingolfin where you encountered this"); } } -- cgit v1.2.3