diff --git a/src/script/api/script_list.hpp b/src/script/api/script_list.hpp index f7ef9cd8f1..8d227ed938 100644 --- a/src/script/api/script_list.hpp +++ b/src/script/api/script_list.hpp @@ -70,7 +70,7 @@ protected: list->AddItem(item->index); opcode_charge += 3; } - ScriptController::DecreaseOps(opcode_charge + (T::GetNumItems() / 2)); + ScriptController::DecreaseOps(opcode_charge + (int)(T::GetNumItems() / 2)); } template