fix(core): Fixes virtue packet (#563)
* Fixes check on virtue packet Closes #562
This commit is contained in:
parent
572edf3e48
commit
107b4a2bf4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue