diff options
author | gumi <git@gumi.ca> | 2018-07-30 11:55:45 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-07-30 13:01:16 -0400 |
commit | 87eb2f98518a63a3f640b97ad62c8b18a5d6b946 (patch) | |
tree | b56d31a13d363d1d706caf1d30cb3381b61f057f /src/map/intif.c | |
parent | a28504fce050c8967b092759f1374d22c7a7ec0e (diff) | |
download | hercules-87eb2f98518a63a3f640b97ad62c8b18a5d6b946.tar.gz hercules-87eb2f98518a63a3f640b97ad62c8b18a5d6b946.tar.bz2 hercules-87eb2f98518a63a3f640b97ad62c8b18a5d6b946.tar.xz hercules-87eb2f98518a63a3f640b97ad62c8b18a5d6b946.zip |
always set the type when doing script->add_str
Diffstat (limited to 'src/map/intif.c')
-rw-r--r-- | src/map/intif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/intif.c b/src/map/intif.c index 5fafc0913..84fad6c6f 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -1324,7 +1324,7 @@ static void intif_parse_Registers(int fd) safestrncpy(sval, RFIFOP(fd, cursor + 1), min((int)sizeof(sval), len)); cursor += len + 1; - script->set_reg(NULL,sd,reference_uid(script->add_str(key), index), key, sval, NULL); + script->set_reg(NULL,sd,reference_uid(script->add_variable(key), index), key, sval, NULL); } /** * Vessel! @@ -1346,7 +1346,7 @@ static void intif_parse_Registers(int fd) ival = RFIFOL(fd, cursor); cursor += 4; - script->set_reg(NULL,sd,reference_uid(script->add_str(key), index), key, (const void *)h64BPTRSIZE(ival), NULL); + script->set_reg(NULL,sd,reference_uid(script->add_variable(key), index), key, (const void *)h64BPTRSIZE(ival), NULL); } } script->parser_current_file = NULL;/* reset */ |