summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_signlist.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/api/script_signlist.cpp b/src/script/api/script_signlist.cpp
index 7288d7568..c64891a90 100644
--- a/src/script/api/script_signlist.cpp
+++ b/src/script/api/script_signlist.cpp
@@ -16,8 +16,7 @@
ScriptSignList::ScriptSignList()
{
- Sign *s;
- FOR_ALL_SIGNS(s) {
+ for (const Sign *s : Sign::Iterate()) {
if (ScriptSign::IsValidSign(s->index)) this->AddItem(s->index);
}
}