diff options
author | Torbjörn Andersson | 2014-04-16 18:09:13 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2014-04-16 18:09:13 +0200 |
commit | 4411c816f6a2cabf271ea9363768490806872f88 (patch) | |
tree | aaf6665e6680ddcde647291c02fa7665d67b39f8 /engines/fullpipe | |
parent | b8aaac27ba01328803e34453753bb3863e090cc3 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/fullpipe/statics.cpp | 2 |
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; |