mangosArchives / Mangos-One-scripts-old

* Current Repo: mangosone/scripts * Replacement for the Script Library that comes with MaNGOS, written in C++ and is compatible with both Windows and Linux. SQL supports MySQL and PGSql.
http://www.getmangos.co.uk/
GNU General Public License v2.0
40 stars 19 forks source link

Crash in TDM when looking into Orb #9

Closed didoutheone closed 11 years ago

didoutheone commented 11 years ago

The script for TDM quest 11490 has a little mistake : It declares 4 floats: static const float afKaelLandPoint[4] = {200.36f, -270.77f, -8.73f, 0.01f};

And tries to use the fifth one: m_creature->SetFacingTo(afKaelLandPoint[4]);

afKaelLandPoint has a size of 4, so indice goes from 0 to 3. This cause a crash when used.

xfurry commented 11 years ago

Well, it didn't crash for me. :) But probably on Linux it behaves in other ways. Anyway it's fixed here: https://github.com/scriptdev2/scriptdev2-tbc/commit/fe8f461931006c5760ed7d1090449b101765159c

Thanks for reporting.

didoutheone commented 11 years ago

Yes indeed on Linux the core stays stuck after that. Thanks for the fix :)