1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00

fix typo that never loaded tileset idx 0

This commit is contained in:
fgenesis 2023-07-10 16:28:04 +02:00
parent ca14476514
commit 0f0f3e9023

View file

@ -19,7 +19,7 @@ bool Tileset::loadFile(const char *fn, const unsigned char *usedIdx, size_t used
int idx=-1, w=0, h=0; int idx=-1, w=0, h=0;
SimpleIStringStream is(line.c_str(), SimpleIStringStream::REUSE); SimpleIStringStream is(line.c_str(), SimpleIStringStream::REUSE);
is >> idx >> gfx >> w >> h; is >> idx >> gfx >> w >> h;
if(idx > 0) if(idx >= 0)
{ {
ElementTemplate t; ElementTemplate t;
t.idx = idx; t.idx = idx;