Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-14-2013, 11:07 AM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

0xFFFFFFFF is cast to 0xFFFFFFFF regardless of signed or unsigned.

You may have issues with the intended value if you improperly widen or narrow.


I haven't followed the code all the way through, but by setting the default item_slot to 0x0, you may have issues with charm slot item
deletions under certain conditions..or you may not...

--GetItem((int16)0xFFFFFFFF)) = Invalid Slot
--GetItem((int16)0x0) = Charm Slot

If you run a public server, I'd recommend heavy testing to determine any negative effects, aside from the error in the log entries, before
pushing this live.

Casting isn't my specialty... (do I have one?)
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:21 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3