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
This commit is contained in:
parent
005c63f794
commit
c96b4f692a
1 changed files with 2 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue