Рабочий: NRE в логе подброса топлива (имя стопки до забора)

Проверено в игре: костёр, сырое мясо -> жареное, остановка по запасу образца (3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
AlexCube
2026-10-18 15:35:45 +03:00
co-authored by Claude Opus 5.5
parent 210ad3ebaa
commit 5ba10eb59b
3 changed files with 2 additions and 1 deletions
+2 -1
View File
@@ -565,9 +565,10 @@ namespace NecromancerTome
{
fuel[i].count += take;
}
string fuelName = g.itemValue.ItemClass?.GetItemName(); // до Take: опустевшая ячейка очищает стопку (было NRE, 18.10)
CinerariumWork.Take(s.box, k, take);
_te.Fuel = fuel;
Debug.Log("[NecromancerTome] Cinerarium: рабочий подбросил топливо " + take + " " + g.itemValue.ItemClass.GetItemName());
Debug.Log("[NecromancerTome] Cinerarium: рабочий подбросил топливо " + take + " " + fuelName);
goto lit;
}
}
Binary file not shown.
Binary file not shown.