From df39f12e3016df7403aed95f6eabefbbba5c4b0c Mon Sep 17 00:00:00 2001 From: faketruth Date: Sun, 19 Feb 2012 19:31:38 +0000 Subject: Fixed assertion bug in NamedEntitySpawn packet, it used to assert when item ID is 0, but now 0 is allowed git-svn-id: http://mc-server.googlecode.com/svn/trunk@296 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/packets/cPacket_NamedEntitySpawn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/packets/cPacket_NamedEntitySpawn.cpp b/source/packets/cPacket_NamedEntitySpawn.cpp index 9a8fcfd14..19d12e4bd 100644 --- a/source/packets/cPacket_NamedEntitySpawn.cpp +++ b/source/packets/cPacket_NamedEntitySpawn.cpp @@ -10,7 +10,7 @@ void cPacket_NamedEntitySpawn::Serialize(AString & a_Data) const { short CurrentItem = m_CurrentItem; - assert(CurrentItem > 0); + assert(CurrentItem >= 0); if (CurrentItem <= 0) { CurrentItem = 0; -- cgit v1.2.3