aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/screen_eob.cpp
diff options
context:
space:
mode:
authorathrxx2011-06-22 01:08:28 +0200
committerJohannes Schickel2011-12-26 16:18:11 +0100
commit045d08986d3accc3fc7d55d76eb550db01ad7fc7 (patch)
treef62e1096f48621ed0b923aa531f04dfe4eb22438 /engines/kyra/screen_eob.cpp
parent69ad70afbb16f25f62432fb497e39c9d5633c10a (diff)
downloadscummvm-rg350-045d08986d3accc3fc7d55d76eb550db01ad7fc7.tar.gz
scummvm-rg350-045d08986d3accc3fc7d55d76eb550db01ad7fc7.tar.bz2
scummvm-rg350-045d08986d3accc3fc7d55d76eb550db01ad7fc7.zip
KYRA: (EOB) - start implementing camp menu
Diffstat (limited to 'engines/kyra/screen_eob.cpp')
-rw-r--r--engines/kyra/screen_eob.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/screen_eob.cpp b/engines/kyra/screen_eob.cpp
index f6b0eafcf4..d3c2187177 100644
--- a/engines/kyra/screen_eob.cpp
+++ b/engines/kyra/screen_eob.cpp
@@ -91,8 +91,9 @@ const ScreenDim *Screen_Eob::getScreenDim(int dim) {
}
void Screen_Eob::modifyScreenDim(int dim, int x, int y, int w, int h) {
- delete _customDimTable[dim];
- _customDimTable[dim] = new ScreenDim;
+ if (!_customDimTable[dim])
+ _customDimTable[dim] = new ScreenDim;
+
memcpy(_customDimTable[dim], &_screenDimTable[dim], sizeof(ScreenDim));
_customDimTable[dim]->sx = x;
_customDimTable[dim]->sy = y;