diff options
author | athrxx | 2011-06-22 01:08:28 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-12-26 16:18:11 +0100 |
commit | 045d08986d3accc3fc7d55d76eb550db01ad7fc7 (patch) | |
tree | f62e1096f48621ed0b923aa531f04dfe4eb22438 /engines/kyra/screen_eob.cpp | |
parent | 69ad70afbb16f25f62432fb497e39c9d5633c10a (diff) | |
download | scummvm-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.cpp | 5 |
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; |