aboutsummaryrefslogtreecommitdiff
path: root/src/text_file_functions.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-09-18 14:28:26 +0300
committerCrystalwarrior <varsash@gmail.com>2019-09-18 14:28:26 +0300
commitf8d3d5d8fdeda3d01595e02b7c616606be32f6aa (patch)
tree2e3642af327261ee477aa77d27aa0d86ce7df0e7 /src/text_file_functions.cpp
parent2d329cdbd27c19d958275fbf1c6862135c96a395 (diff)
Fix a bug with sound effect from misc/ folder not being read
Make an "effects_icon_size" entry in courtroom_design.ini for scaling the buttons in the effects list
Diffstat (limited to 'src/text_file_functions.cpp')
-rw-r--r--src/text_file_functions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp
index 6c34c410..06caf291 100644
--- a/src/text_file_functions.cpp
+++ b/src/text_file_functions.cpp
@@ -884,7 +884,7 @@ QString AOApplication::get_effect(QString effect, QString p_char)
QString AOApplication::get_effect_sound(QString fx_name, QString p_char)
{
QString p_effect = read_char_ini(p_char, "effects", "Options");
- QString p_path = get_base_path() + "misc/effects/" + p_effect + "/effects.ini";
+ QString p_path = get_base_path() + "misc/" + p_effect + "/effects.ini";
QString design_ini_path = get_theme_path("effects/effects.ini");
QString default_path = get_default_theme_path("effects/effects.ini");