summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/script_list.cpp4
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;
}