fixed delegates error

This commit is contained in:
Peter Schojer
2008-06-09 09:49:24 +00:00
parent 515c64faea
commit 46ab108194

View File

@@ -483,9 +483,9 @@ bool Utility::writeJSEvent(std::ostream& out, const std::string& eventName, cons
{
// TODO: we can optimize here a bit by avoiding the copy
std::list<JSDelegate> dels;
std::list<JSDelegate>::const_iterator it = dels.begin();
std::list<JSDelegate>::const_iterator it = delegates.begin();
bool written = false;
for (; it != dels.end(); ++it, --serverCallPos)
for (; it != delegates.end(); ++it, --serverCallPos)
{
if (serverCallPos == 0)
{