summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemThrowable.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-07-13 17:03:29 +0200
committerTycho <work.tycho+git@gmail.com>2014-07-13 17:03:29 +0200
commit6892b448db5f897876657a865fd5bea2785d30a9 (patch)
treef93708e65288648bda310c2b9e11c55663a2fa30 /src/Items/ItemThrowable.h
parentFixed Issue with Comparing agast the wrong chest, potentially causing crashes. (diff)
parentMerge pull request #1178 from mc-server/projectilefix (diff)
downloadcuberite-6892b448db5f897876657a865fd5bea2785d30a9.tar
cuberite-6892b448db5f897876657a865fd5bea2785d30a9.tar.gz
cuberite-6892b448db5f897876657a865fd5bea2785d30a9.tar.bz2
cuberite-6892b448db5f897876657a865fd5bea2785d30a9.tar.lz
cuberite-6892b448db5f897876657a865fd5bea2785d30a9.tar.xz
cuberite-6892b448db5f897876657a865fd5bea2785d30a9.tar.zst
cuberite-6892b448db5f897876657a865fd5bea2785d30a9.zip
Diffstat (limited to 'src/Items/ItemThrowable.h')
-rw-r--r--src/Items/ItemThrowable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Items/ItemThrowable.h b/src/Items/ItemThrowable.h
index fde7b8e67..c151c5d3a 100644
--- a/src/Items/ItemThrowable.h
+++ b/src/Items/ItemThrowable.h
@@ -35,7 +35,7 @@ public:
cFastRandom Random;
a_World->BroadcastSoundEffect("random.bow", a_Player->GetPosX(), a_Player->GetPosY() - a_Player->GetHeight(), a_Player->GetPosZ(), 0.5f, 0.4f / (Random.NextFloat(1.0f) * 0.4f + 0.8f));
- if (a_World->CreateProjectile(Pos.x, Pos.y, Pos.z, m_ProjectileKind, a_Player, a_Player->GetEquippedItem(), &Speed) < 0)
+ if (a_World->CreateProjectile(Pos.x, Pos.y, Pos.z, m_ProjectileKind, a_Player, &a_Player->GetEquippedItem(), &Speed) < 0)
{
return false;
}
@@ -135,7 +135,7 @@ public:
return false;
}
- if (a_World->CreateProjectile(a_BlockX + 0.5, a_BlockY + 1, a_BlockZ + 0.5, m_ProjectileKind, a_Player, a_Player->GetEquippedItem()) < 0)
+ if (a_World->CreateProjectile(a_BlockX + 0.5, a_BlockY + 1, a_BlockZ + 0.5, m_ProjectileKind, a_Player, &a_Player->GetEquippedItem()) < 0)
{
return false;
}