Fixed compile error in LookupByKey fix.

Change-Id: Ice94f09197235cf71b41a22d0767bd7b119284e1
This commit is contained in:
Wouter van Oortmerssen
2016-08-26 14:18:04 -07:00
parent ee56418cef
commit 481d332e72
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ public sealed class Monster : Table {
public static Monster LookupByKey(VectorOffset vectorOffset, string key, ByteBuffer bb) {
byte[] byteKey = System.Text.Encoding.UTF8.GetBytes(key);
int vectorLocation = bb.Length - vectorOffset;
int vectorLocation = bb.Length - vectorOffset.Value;
int span = bb.GetInt(vectorLocation);
int start = 0;
vectorLocation += 4;