avoid crash on startup

This commit is contained in:
Seth Alves 2016-11-16 16:11:17 -08:00
parent e83922f9e4
commit 697369dece

View file

@ -1443,7 +1443,7 @@ void RenderablePolyVoxEntityItem::bonkNeighbors() {
void RenderablePolyVoxEntityItem::locationChanged(bool tellPhysics) {
EntityItem::locationChanged(tellPhysics);
if (!render::Item::isValidID(_myItem)) {
if (!_pipeline || !render::Item::isValidID(_myItem)) {
return;
}
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();