share/hedgewars/Data/Scripts/Achievements.lua
changeset 14236 74bf2d906097
parent 13501 cbda0f842364
--- a/share/hedgewars/Data/Scripts/Achievements.lua	Mon Nov 19 00:19:21 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Achievements.lua	Mon Nov 19 00:54:36 2018 +0100
@@ -3,10 +3,10 @@
 function awardAchievement(name, statMessage, capgrp)
 	local achievementString = string.format(loc("Achievement gotten: %s"), name)
 	if capgrp == nil then
-		captionType = capgrpMessage2
+		capgrp = capgrpMessage2
 	end
 	if capgrp ~= false then
-		AddCaption(achievementString, 0xFFBA00FF, capgrpMessage2)
+		AddCaption(achievementString, 0xFFBA00FF, capgrp)
 	end
 	if not statMessage then
 		statMessage = achievementString