From 5fce9cfaf7f90280e86e15b1595f111e645f7343 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 9 Aug 2006 16:28:09 +0000 Subject: [PATCH] assert that the vector for Color constructor is long enough SVN-Revision: 4140 --- src/video/color.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/color.hpp b/src/video/color.hpp index 1178fabe9..391c929d4 100644 --- a/src/video/color.hpp +++ b/src/video/color.hpp @@ -21,6 +21,7 @@ #define __COLOR_HPP__ #include +#include #include "log.hpp" class Color @@ -38,6 +39,7 @@ public: } Color(const std::vector& vals) { + assert(vals.size() >= 3); red = vals[0]; green = vals[1]; blue = vals[2]; -- 2.11.0