Commit 107111d3 authored by Magix's avatar Magix Committed by GitHub
Browse files

SceneScriptManager fix nullPointer error

Merge pull request #1581 from akatatsu27/development
parents 7600f706 7ca947b0
......@@ -213,7 +213,7 @@ public class SceneScriptManager {
}
for(int entityId : region.getEntities()) {
if(!region.getMetaRegion().contains(getScene().getEntityById(entityId).getPosition())) {
if(getScene().getEntityById(entityId) == null || !region.getMetaRegion().contains(getScene().getEntityById(entityId).getPosition())) {
region.removeEntity(entityId);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment