From 3138b8cba9b08c964f45a2d7c6b4777aca62351d Mon Sep 17 00:00:00 2001 From: Rampastring Date: Sun, 9 Feb 2025 00:04:01 +0200 Subject: [PATCH] Fix bug where rocket spawner gained veterancy based on the cost of its rocket rather than its own cost --- src/extensions/techno/technoext_hooks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/techno/technoext_hooks.cpp b/src/extensions/techno/technoext_hooks.cpp index b580c7c7e..3f567a1a3 100644 --- a/src/extensions/techno/technoext_hooks.cpp +++ b/src/extensions/techno/technoext_hooks.cpp @@ -1222,7 +1222,7 @@ void TechnoClassExt::_Record_The_Kill(TechnoClass* source) } else if (source_typeext->IsMissileSpawn) { if (source_ext->SpawnOwner && source_ext->SpawnOwner->Techno_Type_Class()->IsTrainable) { - source_ext->SpawnOwner->Veterancy.Gain_Experience(source->Techno_Type_Class()->Cost_Of(House), points); + source_ext->SpawnOwner->Veterancy.Gain_Experience(source_ext->SpawnOwner->Techno_Type_Class()->Cost_Of(House), points); } }