diff options
Diffstat (limited to 'src/mapgen.cpp')
-rw-r--r-- | src/mapgen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 137418471..fd4fe5bb0 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -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) : |