Skip to content

Conversation

@olegtsvetkov
Copy link
Contributor

The usage of entities.constants.damage_types to define damage type in TakeDamageInfo object cause a boost exception:

Boost.Python.ArgumentError: Python argument types in
    None.None(TakeDamageInfo, damage_types)
did not match C++ signature:
    None(class CTakeDamageInfo {lvalue}, int)

Test code:

from basetypes import TakeDamageInfo
from entities.constants import damage_types

take_damage_info = TakeDamageInfo()
take_damage_info.type = damage_types.GENERIC

satoon101 added a commit that referenced this pull request Jan 17, 2015
Fixed error when using damage_type enum in TakeDamageInfo
@satoon101 satoon101 merged commit f971962 into Source-Python-Dev-Team:master Jan 17, 2015
@olegtsvetkov olegtsvetkov deleted the fix_damage_types branch January 17, 2015 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants