Fix in Vector conversion.

No need for a conversion overload.
Conversion constructor should cast whatever it's assigning.
This commit is contained in:
King_DuckZ 2014-02-11 23:38:22 +01:00
parent 19ad7a77ea
commit ed4e73f0d9
3 changed files with 2 additions and 17 deletions

View file

@ -45,7 +45,7 @@ namespace cloonel {
if (m_texture) {
int width, height;
SDL_QueryTexture(m_texture, nullptr, nullptr, &width, &height);
m_size = int2(width, height);
m_size = static_cast<ushort2>(int2(width, height));
}
}