diff options
author | Rubidium <rubidium@openttd.org> | 2021-06-16 23:21:21 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-17 16:18:30 +0200 |
commit | 281a65b3e17310d07458652a3f6cba55aff59dc0 (patch) | |
tree | e3f06df00a9f8fc074f863b230980f2a11b066e4 /src/script | |
parent | 357af686dc5e0a0085da5c42639abe83caebe6c3 (diff) | |
download | openttd-281a65b3e17310d07458652a3f6cba55aff59dc0.tar.xz |
Cleanup: simplify some boolean expressions
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_list.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/script_list.cpp b/src/script/api/script_list.cpp index 1985cdbfb..623128bdd 100644 --- a/src/script/api/script_list.cpp +++ b/src/script/api/script_list.cpp @@ -468,7 +468,7 @@ int64 ScriptList::Begin() int64 ScriptList::Next() { - if (this->initialized == false) { + if (!this->initialized) { Debug(script, 0, "Next() is invalid as Begin() is never called"); return 0; } @@ -482,7 +482,7 @@ bool ScriptList::IsEmpty() bool ScriptList::IsEnd() { - if (this->initialized == false) { + if (!this->initialized) { Debug(script, 0, "IsEnd() is invalid as Begin() is never called"); return true; } |