EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Compiling errors from the latest source r1575 (https://www.eqemulator.org/forums/showthread.php?t=31544)

robinreg 06-27-2010 03:57 AM

Compiling errors from the latest source r1575
 
not sure which build it was from. It's either somewhere between r1572 to r1575

here's the error I got:

botspellsai.cpp
.\botspellsai.cpp(1055) : error C2660: 'EntityList::GetNPCList' : function does not take 0 arguments
.\botspellsai.cpp(1055) : error C2228: left of '.begin' must have class/struct/union
.\botspellsai.cpp(1055) : error C2660: 'EntityList::GetNPCList' : function does not take 0 arguments
.\botspellsai.cpp(1055) : error C2228: left of '.end' must have class/struct/union
bot.cpp
bonuses.cpp
beacon.cpp
attack.cpp
aggro.cpp
AA.cpp
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.30729
Copyright (C) Microsoft Corporation. All rights reserved.
Build log was saved at "file://f:\eqservfiles\trunk\EQEmuServer\zone\ReleaseBots\ BuildLog.htm"
Zone - 4 error(s), 0 warning(s)

joligario 06-27-2010 07:25 AM

The new argument was introduced in r1572

robinreg 06-28-2010 09:29 AM

ah, wish I know how to fix this.

Derision 06-28-2010 10:02 AM

Quote:

Originally Posted by robinreg (Post 189259)
ah, wish I know how to fix this.

Untested, but at line 1055 in zone/botspellsai.cpp, replace

Code:

for(std::list<NPC*>::iterator itr = entity_list.GetNPCList().begin(); itr != entity_list.GetNPCList().end(); itr++) {
with:
Code:

std::list<NPC*> npc_list;
entity_list.GetNPCList(npc_list);
for(std::list<NPC*>::iterator itr = npc_list.begin(); itr != npc_list.end(); itr++) {


robinreg 06-28-2010 03:21 PM

Thanks Derision, that fixed the compiling errors. =)


All times are GMT -4. The time now is 03:28 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.