aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bacca2002-05-01 22:28:05 +0000
committerNicolas Bacca2002-05-01 22:28:05 +0000
commit160dc0b25dfb575c07924f8053f81a666cfa77dd (patch)
treef8afcd062af16b381535c0a17d5765514d498207
parent5120aa37837dfc235d698335301d81312f0e4e42 (diff)
downloadscummvm-rg350-160dc0b25dfb575c07924f8053f81a666cfa77dd.tar.gz
scummvm-rg350-160dc0b25dfb575c07924f8053f81a666cfa77dd.tar.bz2
scummvm-rg350-160dc0b25dfb575c07924f8053f81a666cfa77dd.zip
Fixed new domain create (Pixel, please recheck :))
svn-id: r4167
-rw-r--r--config-file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/config-file.cpp b/config-file.cpp
index 36af37eb1d..7ebd38447d 100644
--- a/config-file.cpp
+++ b/config-file.cpp
@@ -249,7 +249,7 @@ const char *Config::set(const char *key, const char *value, const char *d)
ndomains++;
hash =
(hashconfig **) realloc(hash, ndomains * sizeof(hashconfig *));
- hash[ndomains - 1] = new hashconfig(domain);
+ hash[ndomains - 1] = new hashconfig(d);
return hash[ndomains - 1]->set(key, value);
}
@@ -273,7 +273,7 @@ const char *Config::set(const char *key, int value_i, const char *d)
ndomains++;
hash =
(hashconfig **) realloc(hash, ndomains * sizeof(hashconfig *));
- hash[ndomains - 1] = new hashconfig(domain);
+ hash[ndomains - 1] = new hashconfig(d);
return hash[ndomains - 1]->set(key, value);
}