diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-26 00:01:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-26 00:01:41 +0300 |
commit | afbcfe595044767a44055473ce07df1f0fd63dbb (patch) | |
tree | 79c961af92309ab4ae20aedcbede80ada3fe5018 /src/resources/map/maplayer.cpp | |
parent | 482782d74c61e226ed1ce81700708244565291f5 (diff) | |
download | plus-afbcfe595044767a44055473ce07df1f0fd63dbb.tar.gz plus-afbcfe595044767a44055473ce07df1f0fd63dbb.tar.bz2 plus-afbcfe595044767a44055473ce07df1f0fd63dbb.tar.xz plus-afbcfe595044767a44055473ce07df1f0fd63dbb.zip |
Add missing checks into map directory.
Diffstat (limited to 'src/resources/map/maplayer.cpp')
-rw-r--r-- | src/resources/map/maplayer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index 03afd6012..666df1b4a 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -353,10 +353,11 @@ void MapLayer::drawOGL(Graphics *const graphics) const } #endif -void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, +void MapLayer::drawFringe(Graphics *const graphics, + int startX, int startY, int endX, int endY, const int scrollX, const int scrollY, - const Actors *const actors) const + const Actors &actors) const { BLOCK_START("MapLayer::drawFringe") if (!localPlayer || !mSpecialLayer || !mTempLayer) @@ -379,8 +380,8 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, if (endY > mHeight) endY = mHeight; - ActorsCIter ai = actors->begin(); - const ActorsCIter ai_end = actors->end(); + ActorsCIter ai = actors.begin(); + const ActorsCIter ai_end = actors.end(); const int dx = (mX * mapTileSize) - scrollX; const int dy = (mY * mapTileSize) - scrollY + mapTileSize; |