fix(core): Fixes virtue packet (#563)

* Fixes check on virtue packet

Closes #562
This commit is contained in:
Kamron Batman 2021-04-05 23:55:13 -07:00 committed by GitHub
parent 572edf3e48
commit 107b4a2bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -457,7 +457,7 @@ namespace Server.Network
if (typeID == 461)
{
// Virtue gump
var switchCount = reader.ReadInt32();
var switchCount = reader.Remaining >= 4 ? reader.ReadInt32() : 0;
if (buttonID == 1 && switchCount > 0)
{