StatsHelix / demoinfo

A library to analyze CS:GO demos in C#
MIT License
321 stars 78 forks source link

Extended Player Copy() to include active weapon #114

Closed dennisfischer closed 7 years ago

dennisfischer commented 7 years ago

Hey,

I came across a problem using the library. After saving multiple player copies for later analysis, accessing the weapon would always yield an exception. This is because rawWeapons and ActiveWeaponID are not copied when calling Copy() on the player object.

Changed code accordingly, please verify code formatting before merging. This was the cleanest way formatting I could get it to, but I'm not happy with it.