diff --git a/config.cpp b/config.cpp index d634135c..6469ed40 100644 --- a/config.cpp +++ b/config.cpp @@ -45,7 +45,7 @@ string csname(charstyle& cs) { } int playergender() { - return (getcs().charid&1) ? GEN_F : GEN_M; + return (getcs().charid >= 0 && (getcs().charid&1)) ? GEN_F : GEN_M; } int princessgender() { int g = playergender();