View Single Post
  #1  
Old 07-25-2012, 12:39 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default ReleaseBots Rev 2171

Is anyone else having trouble compiling bots with this rev?

This line in bots.cpp:

Code:
min_hit = min_hit * (100 + itembonuses.MinDamageModifier + spellbonuses.MinDamageModifier) / 100;
is giving this error:

Code:
bot.cpp(7696): error C2110: '+' : cannot add two pointers

My affected files are unmodified revisions (including mob.h and .cpp)

The properties referenced are arrays and I don't know the proper index position(s) to add to fix this... (Is it suppose
to sum the array?)

Adding the array index corrects this error, but I just don't know what the appropriate context is...
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote