Browse Source

Fixed invalid item errors in achievements (#4240)

Fixes #4236

Thanks to @RadianFord
Lemongrass3110 5 years ago
parent
commit
8bb6b119b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/achievement.cpp

+ 1 - 1
src/map/achievement.cpp

@@ -260,7 +260,7 @@ uint64 AchievementDatabase::parseBodyNode(const YAML::Node &node){
 				return 0;
 				return 0;
 			}
 			}
 
 
-			achievement->rewards.nameid = amount;
+			achievement->rewards.amount = amount;
 		}
 		}
 
 
 		if( this->nodeExists( rewardNode, "Script" ) ){
 		if( this->nodeExists( rewardNode, "Script" ) ){