PositionCell/PlaceItemCell: add console message if cell doesn't exist

celladd
Scott Howard 10 years ago
parent 53213bf236
commit d01e8cc97d

@ -316,6 +316,7 @@ namespace MWScript
store = MWBase::Environment::get().getWorld()->getExterior(cx,cy); store = MWBase::Environment::get().getWorld()->getExterior(cx,cy);
if(!cell) if(!cell)
{ {
runtime.getContext().report ("unknown cell (" + cellID + ")");
std::cerr << "unknown cell (" << cellID << ")\n"; std::cerr << "unknown cell (" << cellID << ")\n";
} }
} }
@ -428,6 +429,7 @@ namespace MWScript
store = MWBase::Environment::get().getWorld()->getExterior(cx,cy); store = MWBase::Environment::get().getWorld()->getExterior(cx,cy);
if(!cell) if(!cell)
{ {
runtime.getContext().report ("unknown cell (" + cellID + ")");
std::cerr << "unknown cell (" << cellID << ")\n"; std::cerr << "unknown cell (" << cellID << ")\n";
} }
} }

Loading…
Cancel
Save