mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-12 07:26:58 +00:00
fix a little crash
This commit is contained in:
parent
fe16861832
commit
13c3d8a7af
1 changed files with 3 additions and 0 deletions
|
@ -2998,6 +2998,9 @@ void SceneEditor::doPrevElement()
|
|||
if (curElement < 0)
|
||||
curElement = dsq->game->elementTemplates.size()-1;
|
||||
|
||||
if(curElement < 0)
|
||||
return;
|
||||
|
||||
if (dsq->game->elementTemplates[curElement].idx < 1024)
|
||||
{
|
||||
//int idx = dsq->game->elementTemplates[curElement].idx;
|
||||
|
|
Loading…
Add table
Reference in a new issue