Loading

Paste #paeykntqv

  1. diff --git a/CorsixTH/Src/th_gfx.cpp b/CorsixTH/Src/th_gfx.cpp
  2. index 2f54f49..1fb0e79 100644
  3. --- a/CorsixTH/Src/th_gfx.cpp
  4. +++ b/CorsixTH/Src/th_gfx.cpp
  5. @@ -28,7 +28,7 @@ SOFTWARE.
  6.  #include <new>
  7.  #include <algorithm>
  8.  #include <memory.h>
  9. -#include <limits.h>
  10. +#include <limits>
  11.  #include <cassert>
  12.  #include <cstdint>
  13.  
  14. @@ -375,7 +375,7 @@ size_t THAnimationManager::loadElements(Input &input, THSpriteSheet *pSpriteShee
  15.      while (iNumElements > 0)
  16.      {
  17.          if (iLoadedElements >= iElementCount || !input.Available(12))
  18. -            return SIZE_MAX;
  19. +            return std::numeric_limits<std::size_t>::max();
  20.  
  21.          size_t iSprite = input.Uint32();
  22.          int iX = input.Int16();

Comments