Core/Gameobject: Fix mining

This commit is contained in:
hondacrx
2018-03-11 14:56:22 -04:00
parent b08f686ac5
commit 47d1651cb9
2 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -929,7 +929,7 @@ namespace Game.Entities
if (skill == null || skill.State == SkillState.Deleted)
return;
ushort field = (ushort)(skill.Pos / 2 + (talent ? PlayerFields.SkillLinePermBonus : PlayerFields.SkillLineTempBonus));
int field = (int)(skill.Pos / 2 + (talent ? PlayerFields.SkillLinePermBonus : PlayerFields.SkillLineTempBonus));
byte offset = (byte)(skill.Pos & 1);
ushort bonus = GetUInt16Value(field, offset);