diff options
author | Einar Johan Trøan Sømåen | 2012-08-31 18:25:24 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-08-31 19:23:41 +0200 |
commit | 2fd38f47e04430b8684502e625f87a04dd968def (patch) | |
tree | c08bc59102689714bc82de3dde924e5bacd08558 /engines/wintermute/ad/ad_waypoint_group.cpp | |
parent | 969f4d5947b6a36d66c12c510b8fe623e1782bbd (diff) | |
download | scummvm-rg350-2fd38f47e04430b8684502e625f87a04dd968def.tar.gz scummvm-rg350-2fd38f47e04430b8684502e625f87a04dd968def.tar.bz2 scummvm-rg350-2fd38f47e04430b8684502e625f87a04dd968def.zip |
WINTERMUTE: Replace col_templ's getSize with Common::Array::size()
Diffstat (limited to 'engines/wintermute/ad/ad_waypoint_group.cpp')
-rw-r--r-- | engines/wintermute/ad/ad_waypoint_group.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/ad/ad_waypoint_group.cpp b/engines/wintermute/ad/ad_waypoint_group.cpp index 1573f5914e..8da62c9115 100644 --- a/engines/wintermute/ad/ad_waypoint_group.cpp +++ b/engines/wintermute/ad/ad_waypoint_group.cpp @@ -56,7 +56,7 @@ AdWaypointGroup::~AdWaypointGroup() { //////////////////////////////////////////////////////////////////////////
void AdWaypointGroup::cleanup() {
- for (int i = 0; i < _points.getSize(); i++) {
+ for (uint32 i = 0; i < _points.size(); i++) {
delete _points[i];
}
_points.clear();
@@ -179,7 +179,7 @@ bool AdWaypointGroup::saveAsText(BaseDynamicBuffer *buffer, int indent) { }
BaseClass::saveAsText(buffer, indent + 2);
- for (int i = 0; i < _points.getSize(); i++) {
+ for (uint32 i = 0; i < _points.size(); i++) {
buffer->putTextIndent(indent + 2, "POINT {%d,%d}\n", _points[i]->x, _points[i]->y);
}
@@ -253,7 +253,7 @@ bool AdWaypointGroup::mimic(AdWaypointGroup *wpt, float scale, int argX, int arg cleanup();
- for (int i = 0; i < wpt->_points.getSize(); i++) {
+ for (uint32 i = 0; i < wpt->_points.size(); i++) {
int x = (int)((float)wpt->_points[i]->x * scale / 100.0f);
int y = (int)((float)wpt->_points[i]->y * scale / 100.0f);
|