summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-07-30 12:44:01 -0400
committergumi <git@gumi.ca>2018-07-30 12:44:05 -0400
commit6696ad9eed9b95bf8abe135801d1fad03aeb40e6 (patch)
treedeffaf5e560222c1489135edd880aa38ec9c27ce
parentf3b156edbdf8a09afa95c65085e4e32df3884e07 (diff)
downloadhercules-2018.07.29+1.tar.gz
hercules-2018.07.29+1.tar.bz2
hercules-2018.07.29+1.tar.xz
hercules-2018.07.29+1.zip
temporary fix for getd (#2163)v2018.07.29+1
this will be reverted in the next release and a proper fix will be added
-rw-r--r--CHANGELOG.md5
-rw-r--r--src/map/script.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 157ec711b..72e5cc543 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,10 @@ and this project does not adhere to [Semantic Versioning](http://semver.org/spec
If you are reading this in a text editor, simply ignore this section
-->
+## [v2018.07.29+1] `Jul 29 2018` `PATCH 1`
+### Fixed
+- Added a temporary patch for getd when variable types are C_NOP. (#2163)
+
## [v2018.07.29] `Jul 29 2018`
### Added
- Added support for the Achievements system and the Titles system. (#2067, #2157, #2161)
@@ -365,6 +369,7 @@ If you are reading this in a text editor, simply ignore this section
- New versioning scheme and project changelogs/release notes (#1853)
[Unreleased]: https://github.com/HerculesWS/Hercules/compare/stable...master
+[v2018.07.29+1]: https://github.com/HerculesWS/Hercules/compare/v2018.07.29...v2018.07.29+1
[v2018.07.29]: https://github.com/HerculesWS/Hercules/compare/v2018.07.01+1...v2018.07.29
[v2018.07.01+1]: https://github.com/HerculesWS/Hercules/compare/v2018.07.01...v2018.07.01+1
[v2018.07.01]: https://github.com/HerculesWS/Hercules/compare/v2018.06.03...v2018.07.01
diff --git a/src/map/script.c b/src/map/script.c
index 6c09bc6c9..846075c0e 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -17800,7 +17800,7 @@ static BUILDIN(getd)
id = script->search_str(varname);
- if (id < 0) {
+ if (id < 0 || script->str_data[id].type == C_NOP) {
id = script->add_str(varname);
script->str_data[id].type = C_NAME;
} else if (script->str_data[id].type != C_NAME) {