@@ -272,7 +272,7 @@ internal bool IsPotentiallyDupesTrade {
272272 Dictionary < uint , Dictionary < Item . EType , uint > > ItemsToGivePerGame = new Dictionary < uint , Dictionary < Item . EType , uint > > ( ) ;
273273 foreach ( Item item in ItemsToGive ) {
274274 Dictionary < Item . EType , uint > ItemsPerType ;
275- if ( ItemsToGivePerGame . TryGetValue ( item . RealAppID , out ItemsPerType ) ) {
275+ if ( ! ItemsToGivePerGame . TryGetValue ( item . RealAppID , out ItemsPerType ) ) {
276276 ItemsPerType = new Dictionary < Item . EType , uint > ( ) ;
277277 ItemsPerType [ item . Type ] = item . Amount ;
278278 ItemsToGivePerGame [ item . RealAppID ] = ItemsPerType ;
@@ -289,7 +289,7 @@ internal bool IsPotentiallyDupesTrade {
289289 Dictionary < uint , Dictionary < Item . EType , uint > > ItemsToReceivePerGame = new Dictionary < uint , Dictionary < Item . EType , uint > > ( ) ;
290290 foreach ( Item item in ItemsToReceive ) {
291291 Dictionary < Item . EType , uint > ItemsPerType ;
292- if ( ItemsToReceivePerGame . TryGetValue ( item . RealAppID , out ItemsPerType ) ) {
292+ if ( ! ItemsToReceivePerGame . TryGetValue ( item . RealAppID , out ItemsPerType ) ) {
293293 ItemsPerType = new Dictionary < Item . EType , uint > ( ) ;
294294 ItemsPerType [ item . Type ] = item . Amount ;
295295 ItemsToReceivePerGame [ item . RealAppID ] = ItemsPerType ;
0 commit comments