]> git.localhorst.tv Git - blank.git/blobdiff - src/standalone/standalone.cpp
make collisions reference their entity
[blank.git] / src / standalone / standalone.cpp
index ad6450d5b05bda8a42d419f5969e32c977256a05..2ffe6bc862c85a72600cf5ce4512d4efbdecb323 100644 (file)
@@ -164,7 +164,7 @@ void MasterState::Update(int dt) {
        if (input.BlockFocus()) {
                hud.FocusBlock(input.BlockFocus().GetChunk(), input.BlockFocus().block);
        } else if (input.EntityFocus()) {
-               hud.FocusEntity(*input.EntityFocus().entity);
+               hud.FocusEntity(input.EntityFocus().GetEntity());
        } else {
                hud.FocusNone();
        }