summaryrefslogtreecommitdiff
path: root/src/map/magic-interpreter-base.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-08-12 10:45:18 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-08-25 17:58:12 -0700
commit749fec734c4583153fb2dbc80f1d21db2c2ab457 (patch)
tree7628de9c7426008d06e78ad05b05949b4bb55c5b /src/map/magic-interpreter-base.cpp
parent31e906c1fbaf3bc9128138302d8db549e87769a7 (diff)
downloadtmwa-749fec734c4583153fb2dbc80f1d21db2c2ab457.tar.gz
tmwa-749fec734c4583153fb2dbc80f1d21db2c2ab457.tar.bz2
tmwa-749fec734c4583153fb2dbc80f1d21db2c2ab457.tar.xz
tmwa-749fec734c4583153fb2dbc80f1d21db2c2ab457.zip
Kill those dumb strings
Diffstat (limited to 'src/map/magic-interpreter-base.cpp')
-rw-r--r--src/map/magic-interpreter-base.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/magic-interpreter-base.cpp b/src/map/magic-interpreter-base.cpp
index 1ac391a..be9a61a 100644
--- a/src/map/magic-interpreter-base.cpp
+++ b/src/map/magic-interpreter-base.cpp
@@ -55,7 +55,7 @@ void set_dir(val_t *v, DIR d)
static
-void set_string(val_t *v, dumb_string x)
+void set_string(val_t *v, RString x)
{
*v = ValString{x};
}
@@ -164,7 +164,7 @@ dumb_ptr<env_t> spell_create_env(magic_conf_t *conf, dumb_ptr<spell_t> spell,
{
case SPELLARG::STRING:
- set_string(&env->varu[spell->arg], dumb_string::copys(param));
+ set_string(&env->varu[spell->arg], param);
break;
case SPELLARG::PC: