mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-17 20:09:35 +00:00
Use std::vector instead of std::list for RenderObject children
This commit is contained in:
parent
35c8086802
commit
300f326777
5 changed files with 18 additions and 70 deletions
|
@ -9328,7 +9328,7 @@ void Game::toggleKeyConfigMenu(bool f)
|
|||
|
||||
//group_keyConfig->children[group_keyConfig->children.size()-3]
|
||||
|
||||
RenderObjectList::reverse_iterator i = group_keyConfig->children.rbegin();
|
||||
RenderObject::Children::reverse_iterator i = group_keyConfig->children.rbegin();
|
||||
AquariaKeyConfig *upright0 = (AquariaKeyConfig*)(*i);
|
||||
i++;
|
||||
AquariaKeyConfig *upright = (AquariaKeyConfig*)(*i);
|
||||
|
|
|
@ -153,6 +153,9 @@ void ScriptedEntity::initEmitter(int emit, const std::string &file)
|
|||
|
||||
void ScriptedEntity::startEmitter(int emit)
|
||||
{
|
||||
if(emit >= emitters.size())
|
||||
return;
|
||||
|
||||
if (emitters[emit])
|
||||
{
|
||||
emitters[emit]->start();
|
||||
|
@ -161,6 +164,9 @@ void ScriptedEntity::startEmitter(int emit)
|
|||
|
||||
void ScriptedEntity::stopEmitter(int emit)
|
||||
{
|
||||
if(emit >= emitters.size())
|
||||
return;
|
||||
|
||||
if (emitters[emit])
|
||||
{
|
||||
emitters[emit]->stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue