summaryrefslogtreecommitdiff
path: root/TrainerMod
diff options
context:
space:
mode:
authorGormogon <Gormogon@users.noreply.github.com>2016-05-29 16:13:24 -0400
committerGormogon <Gormogon@users.noreply.github.com>2016-05-29 16:13:24 -0400
commit625f9c89e4db470c0325b5d148c5286c1b5e54eb (patch)
tree31076fbf57cbbc993abca39eef7bc48762505754 /TrainerMod
parent9503dfb94b432b1e6e268dc415327eec507a70c2 (diff)
downloadSMAPI-625f9c89e4db470c0325b5d148c5286c1b5e54eb.tar.gz
SMAPI-625f9c89e4db470c0325b5d148c5286c1b5e54eb.tar.bz2
SMAPI-625f9c89e4db470c0325b5d148c5286c1b5e54eb.zip
Take advantage of some new language opportunities.
Diffstat (limited to 'TrainerMod')
-rw-r--r--TrainerMod/TrainerMod.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/TrainerMod/TrainerMod.cs b/TrainerMod/TrainerMod.cs
index 91db4c88..da5365cb 100644
--- a/TrainerMod/TrainerMod.cs
+++ b/TrainerMod/TrainerMod.cs
@@ -629,8 +629,7 @@ namespace TrainerMod
}
}
- var o = new Object(e.Command.CalledArgs[0].AsInt32(), count);
- o.quality = quality;
+ var o = new Object(e.Command.CalledArgs[0].AsInt32(), count) {quality = quality};
Game1.player.addItemByMenuIfNecessary(o);
}