Skip to content

Commit

Permalink
Fix windows compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mortennobel committed Mar 22, 2018
1 parent 82de7e3 commit 2617e79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/sre/SpriteBatch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
* License: MIT
*/

#pragma once

#pragma once
#include <vector>
#include "sre/Sprite.hpp"
#include "Mesh.hpp"
Expand Down Expand Up @@ -58,9 +57,10 @@ class SpriteBatch {
size ++;
start ++;
}
if (size >= std::numeric_limits<uint16_t>::max()){
LOG_ERROR("More than %i sprites in a batch ",std::numeric_limits<uint16_t>::max());
sprites.resize(std::numeric_limits<uint16_t>::max());

if (size >= USHRT_MAX){
LOG_ERROR("More than %i sprites in a batch ", USHRT_MAX);
sprites.resize(USHRT_MAX);
return *this;
}
return *this;
Expand Down

0 comments on commit 2617e79

Please sign in to comment.