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-c427514a06d6master
parent
3a8d2aa421
commit
df39f12e30
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue