diff --git a/engines/chewy/movclass.cpp b/engines/chewy/movclass.cpp index 44acb207b78..d6ce5f32b20 100644 --- a/engines/chewy/movclass.cpp +++ b/engines/chewy/movclass.cpp @@ -49,10 +49,13 @@ namespace Chewy { #define MOV_X 1 #define MOV_Y 2 -int16 vec_tbl[4] = { -40, 1, 40, -1}; - movclass::movclass() { + vec_tbl[0] = -40; + vec_tbl[1] = 1; + vec_tbl[2] = 40; + vec_tbl[3] = -1; } + movclass::~movclass() { } diff --git a/engines/chewy/movclass.h b/engines/chewy/movclass.h index 655dea10955..6f9d0bb0ed5 100644 --- a/engines/chewy/movclass.h +++ b/engines/chewy/movclass.h @@ -133,6 +133,7 @@ private: MovLineExit mle; GotoMovLine gml; GotoPkt *gpkt = nullptr; + int16 vec_tbl[4]; }; } // namespace Chewy