Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Commit

Permalink
武将ID、头像ID转换错误
Browse files Browse the repository at this point in the history
  • Loading branch information
kpxp committed Jan 22, 2016
1 parent 8a131a9 commit fc1e88a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GameObjects/GameObjects/GameScenario.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3169,14 +3169,14 @@ private List<string> LoadGameDataFromDataBase(OleDbConnection DbConnection, stri

Person person = new Person();
person.Scenario = this;
person.ID = (int)reader["ID"];
person.ID = (short)reader["ID"];
person.Available = (bool)reader["Available"];
person.Alive = (bool)reader["Alive"];
person.SurName = reader["SurName"].ToString();
person.GivenName = reader["GivenName"].ToString();
person.CalledName = reader["CalledName"].ToString();
person.Sex = (bool)reader["Sex"];
person.PictureIndex = (int)reader["Pic"];
person.PictureIndex = (short)reader["Pic"];
person.Ideal = (short)reader["Ideal"];
person.IdealTendency = this.GameCommonData.AllIdealTendencyKinds.GetGameObject((short)reader["IdealTendency"]) as IdealTendencyKind;
if (person.IdealTendency == null)
Expand Down

0 comments on commit fc1e88a

Please sign in to comment.