summaryrefslogtreecommitdiff
path: root/src/mmo/strs.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mmo/strs.py')
-rw-r--r--src/mmo/strs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mmo/strs.py b/src/mmo/strs.py
index 3e39ef4..313ecb5 100644
--- a/src/mmo/strs.py
+++ b/src/mmo/strs.py
@@ -21,7 +21,11 @@ for s in [
value = self._value
fields = value.type.fields()
field0 = fields[-1]
- return '%s' % value[field0]
+ if field0.is_base_class:
+ w = value.cast(field0.type)
+ else:
+ w = value[field0.name]
+ return '%s' % w
test_extra = '''
#include "../strings/fwd.hpp"