From 961d1d56117e2e30428f9596c674e1fcc2a8211f Mon Sep 17 00:00:00 2001 From: RoyBerube Date: Thu, 8 Oct 2020 20:46:59 -0600 Subject: [PATCH] Ammo extended effects loading issue repair --- src/item_factory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item_factory.cpp b/src/item_factory.cpp index fc31902f5642d..4e788b44e4358 100644 --- a/src/item_factory.cpp +++ b/src/item_factory.cpp @@ -1599,7 +1599,7 @@ void islot_ammo::load( const JsonObject &jo ) optional( jo, was_loaded, "recoil", recoil, 0 ); optional( jo, was_loaded, "count", def_charges, 1 ); optional( jo, was_loaded, "loudness", loudness, -1 ); - optional( jo, was_loaded, "effects", ammo_effects ); + assign( jo, "effects", ammo_effects ); optional( jo, was_loaded, "critical_multiplier", critical_multiplier, 2.0 ); optional( jo, was_loaded, "show_stats", force_stat_display, cata::nullopt ); }