summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Reflection/Reflector.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-13 22:17:26 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-13 22:17:26 -0400
commit3078ae2a8e10294c86f8702769e15da16511ecde (patch)
tree203e18a164d621eb0d06ca487f9940bf90b349b5 /src/SMAPI/Framework/Reflection/Reflector.cs
parent2765e3f9b379f0dc2a5732c1ca9ba23dbe2a7f15 (diff)
downloadSMAPI-3078ae2a8e10294c86f8702769e15da16511ecde.tar.gz
SMAPI-3078ae2a8e10294c86f8702769e15da16511ecde.tar.bz2
SMAPI-3078ae2a8e10294c86f8702769e15da16511ecde.zip
fix typos in recent changes (#837)
Diffstat (limited to 'src/SMAPI/Framework/Reflection/Reflector.cs')
-rw-r--r--src/SMAPI/Framework/Reflection/Reflector.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI/Framework/Reflection/Reflector.cs b/src/SMAPI/Framework/Reflection/Reflector.cs
index 3490ee97..79575c26 100644
--- a/src/SMAPI/Framework/Reflection/Reflector.cs
+++ b/src/SMAPI/Framework/Reflection/Reflector.cs
@@ -153,7 +153,7 @@ namespace StardewModdingAPI.Framework.Reflection
{
for (Type? curType = type; curType != null; curType = curType.BaseType)
{
- FieldInfo? fieldInfo = type.GetField(name, bindingFlags);
+ FieldInfo? fieldInfo = curType.GetField(name, bindingFlags);
if (fieldInfo != null)
{
type = curType;
@@ -182,7 +182,7 @@ namespace StardewModdingAPI.Framework.Reflection
{
for (Type? curType = type; curType != null; curType = curType.BaseType)
{
- PropertyInfo? propertyInfo = type.GetProperty(name, bindingFlags);
+ PropertyInfo? propertyInfo = curType.GetProperty(name, bindingFlags);
if (propertyInfo != null)
{
type = curType;
@@ -210,7 +210,7 @@ namespace StardewModdingAPI.Framework.Reflection
{
for (Type? curType = type; curType != null; curType = curType.BaseType)
{
- MethodInfo? methodInfo = type.GetMethod(name, bindingFlags);
+ MethodInfo? methodInfo = curType.GetMethod(name, bindingFlags);
if (methodInfo != null)
{
type = curType;