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:
parent
ca14476514
commit
0f0f3e9023
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue