aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ContainerSetContentPacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/ContainerSetContentPacket.cpp')
-rw-r--r--Minecraft.World/ContainerSetContentPacket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/ContainerSetContentPacket.cpp b/Minecraft.World/ContainerSetContentPacket.cpp
index ae76e0f0..13cfebd7 100644
--- a/Minecraft.World/ContainerSetContentPacket.cpp
+++ b/Minecraft.World/ContainerSetContentPacket.cpp
@@ -20,11 +20,11 @@ ContainerSetContentPacket::ContainerSetContentPacket()
ContainerSetContentPacket::ContainerSetContentPacket(int containerId, vector<shared_ptr<ItemInstance> > *newItems)
{
this->containerId = containerId;
- items = ItemInstanceArray(static_cast<int>(newItems->size()));
+ items = ItemInstanceArray((int)newItems->size());
for (unsigned int i = 0; i < items.length; i++)
{
shared_ptr<ItemInstance> item = newItems->at(i);
- items[i] = item == nullptr ? nullptr : item->copy();
+ items[i] = item == NULL ? nullptr : item->copy();
}
}