diff options
author | Carl <slxxls92@gmail.com> | 2016-03-30 19:41:00 +0100 |
---|---|---|
committer | Carl <slxxls92@gmail.com> | 2016-03-30 19:41:00 +0100 |
commit | 5975bbc3c2c68cdfeb36e7469ff4b3506c69cbaa (patch) | |
tree | a85ac8d36f8d604ab8b72502577e4275d0958657 /StardewModdingAPI/Inheritance | |
parent | 2b247c05ae770f18f0923cf2ef1799847568c577 (diff) | |
parent | 9f0210a255152dc434405698512c941c4ad5c8d8 (diff) | |
download | SMAPI-5975bbc3c2c68cdfeb36e7469ff4b3506c69cbaa.tar.gz SMAPI-5975bbc3c2c68cdfeb36e7469ff4b3506c69cbaa.tar.bz2 SMAPI-5975bbc3c2c68cdfeb36e7469ff4b3506c69cbaa.zip |
Merge pull request #86 from CJBok/master
Freeze fix when booting up Journey of the Prairie king
Diffstat (limited to 'StardewModdingAPI/Inheritance')
-rw-r--r-- | StardewModdingAPI/Inheritance/SGame.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs index 1389ef22..ede5b5c8 100644 --- a/StardewModdingAPI/Inheritance/SGame.cs +++ b/StardewModdingAPI/Inheritance/SGame.cs @@ -208,8 +208,8 @@ namespace StardewModdingAPI.Inheritance /// </summary>
public int ThumbstickMotionMargin
{
- get { return (int)typeof(Game1).GetBaseFieldValue<object>(Program.gamePtr, "thumbstickMotionMargin"); }
- set { typeof(Game1).SetBaseFieldValue<object>(this, "thumbstickMotionMargin", value); }
+ get { return (int)typeof(Game1).GetField("thumbstickMotionMargin", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null); }
+ set { typeof(Game1).GetField("thumbstickMotionMargin", BindingFlags.NonPublic | BindingFlags.Static).SetValue(null, value); }
}
/// <summary>
|