From 625f9c89e4db470c0325b5d148c5286c1b5e54eb Mon Sep 17 00:00:00 2001 From: Gormogon Date: Sun, 29 May 2016 16:13:24 -0400 Subject: Take advantage of some new language opportunities. --- TrainerMod/TrainerMod.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'TrainerMod') 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); } -- cgit