aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/cge_main.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2011-07-12 21:16:23 +1000
committerPaul Gilbert2011-07-12 21:16:23 +1000
commitdaae033e0156f19b3bdbb46aa7b0785c40f1e094 (patch)
tree294295b23dacec42fffd87b13e50f49d8699ac9a /engines/cge/cge_main.cpp
parenta524adcaee89678ba99b294fcbc5efdf9e137c04 (diff)
downloadscummvm-rg350-daae033e0156f19b3bdbb46aa7b0785c40f1e094.tar.gz
scummvm-rg350-daae033e0156f19b3bdbb46aa7b0785c40f1e094.tar.bz2
scummvm-rg350-daae033e0156f19b3bdbb46aa7b0785c40f1e094.zip
CGE: Converted SprExt::_Seq to use dynamically allocated data
Diffstat (limited to 'engines/cge/cge_main.cpp')
-rw-r--r--engines/cge/cge_main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index 4c20f31cac..d35a985d89 100644
--- a/engines/cge/cge_main.cpp
+++ b/engines/cge/cge_main.cpp
@@ -1579,7 +1579,7 @@ void CGEEngine::runGame() {
_vga->_showQ->append(_cavLight);
_cavLight->_flags._hide = true;
- static Seq pocSeq[] = { { 0, 0, 0, 0, 20 },
+ const Seq pocSeq[] = { { 0, 0, 0, 0, 20 },
{ 1, 2, 0, 0, 4 },
{ 2, 3, 0, 0, 4 },
{ 3, 4, 0, 0, 16 },
@@ -1587,7 +1587,10 @@ void CGEEngine::runGame() {
{ 1, 6, 0, 0, 4 },
{ 0, 1, 0, 0, 16 },
};
- _pocLight->setSeq(pocSeq);
+ Seq *seq = (Seq *)malloc(7 * sizeof(Seq));
+ Common::copy(pocSeq, pocSeq + 7, seq);
+ _pocLight->setSeq(seq);
+
_pocLight->_flags._tran = true;
_pocLight->_time = 1;
_pocLight->_z = 120;