aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/statics.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2014-04-16 18:09:13 +0200
committerTorbjörn Andersson2014-04-16 18:09:13 +0200
commit4411c816f6a2cabf271ea9363768490806872f88 (patch)
treeaaf6665e6680ddcde647291c02fa7665d67b39f8 /engines/fullpipe/statics.cpp
parentb8aaac27ba01328803e34453753bb3863e090cc3 (diff)
downloadscummvm-rg350-4411c816f6a2cabf271ea9363768490806872f88.tar.gz
scummvm-rg350-4411c816f6a2cabf271ea9363768490806872f88.tar.bz2
scummvm-rg350-4411c816f6a2cabf271ea9363768490806872f88.zip
FULLPIPE: Fix GCC warning
I assume that the purpose of realloc() here is to increase the _points memory area, but it's not guaranteed that the new block will start at the same address as the old one.
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r--engines/fullpipe/statics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 0b13e539d7..a3a160b5b2 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -107,7 +107,7 @@ bool StepArray::gotoNextPoint() {
void StepArray::insertPoints(Common::Point **points, int pointsCount) {
if (_currPointIndex + pointsCount >= _pointsCount)
- realloc(_points, sizeof(Common::Point *) * (_currPointIndex + pointsCount));
+ _points = (Common::Point **)realloc(_points, sizeof(Common::Point *) * (_currPointIndex + pointsCount));
_maxPointIndex = _currPointIndex + pointsCount;