mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Revert "Fix issue #2441: crash on respawn, since a conversion std::list to std::vector on Environment.cpp"
This reverts parts of commit 9749d9fee6
, which breaks node resolver
list clearing
This commit is contained in:
parent
d03c2999da
commit
26153bab7d
5 changed files with 12 additions and 11 deletions
|
@ -412,8 +412,9 @@ void GenerateNotifier::getEvents(
|
|||
std::map<std::string, std::vector<v3s16> > &event_map,
|
||||
bool peek_events)
|
||||
{
|
||||
for (std::vector<GenNotifyEvent>::iterator it = m_notify_events.begin();
|
||||
it != m_notify_events.end(); ++it) {
|
||||
std::list<GenNotifyEvent>::iterator it;
|
||||
|
||||
for (it = m_notify_events.begin(); it != m_notify_events.end(); ++it) {
|
||||
GenNotifyEvent &gn = *it;
|
||||
std::string name = (gn.type == GENNOTIFY_DECORATION) ?
|
||||
"decoration#"+ itos(gn.id) :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue