]> git.localhorst.tv Git - blank.git/blobdiff - src/client/client.cpp
make collisions reference their entity
[blank.git] / src / client / client.cpp
index 77b7fa63a3ed5f774b5694a4fd53a8e435886738..b79c435473e946de841c7353cb2fb37870923c87 100644 (file)
@@ -158,7 +158,7 @@ void InteractiveState::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();
        }