From d89ab75b637475b5f747848348ae64dba0906912 Mon Sep 17 00:00:00 2001 From: Lari Nieminen Date: Sat, 29 Aug 2015 12:48:50 +0300 Subject: [PATCH] Fixed custom status sounds not getting read --- src/game_config.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game_config.cpp b/src/game_config.cpp index 77647eb4a97..6e8931bca08 100644 --- a/src/game_config.cpp +++ b/src/game_config.cpp @@ -324,9 +324,9 @@ namespace game_config if(const config & ss = s.child("status")) { using namespace game_config::sounds::status; - if (ss.has_attribute("poisoned")) poisoned = s["poisoned"].str(); - if (ss.has_attribute("slowed")) slowed = s["slowed"].str(); - if (ss.has_attribute("petrified")) petrified = s["petrified"].str(); + if (ss.has_attribute("poisoned")) poisoned = ss["poisoned"].str(); + if (ss.has_attribute("slowed")) slowed = ss["slowed"].str(); + if (ss.has_attribute("petrified")) petrified = ss["petrified"].str(); } } }