mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-08-20 09:57:09 +00:00
fix: strange crash
really bad way of fixing it but I don't think it'll cause issues. i get it when flying around a ton, maybe its to do with the biomes achievement
This commit is contained in:
parent
de1b069835
commit
b6345b1936
|
|
@ -553,5 +553,7 @@ void Stats::buildAdditionalStats()
|
||||||
|
|
||||||
Stat *Stats::get(int key)
|
Stat *Stats::get(int key)
|
||||||
{
|
{
|
||||||
|
if (statsById->find(key) == statsById->end())
|
||||||
|
return nullptr;
|
||||||
return statsById->at(key);
|
return statsById->at(key);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue