Fixes tiny oversight on the language fix

Fixes the removal of linguist trait slapping that returnable number 0 that likes to override the species value in prefs numlanguage()
This commit is contained in:
Verkister
2021-08-27 15:46:42 +03:00
committed by GitHub
parent b00631223c
commit d8eb8f4efa
@@ -235,7 +235,7 @@
var/choice = tgui_alert(usr, "Remove [initial(trait.name)] and regain [initial(trait.cost)] points?","Remove Trait",list("Remove","Cancel"))
if(choice == "Remove")
if(traitpath == /datum/trait/positive/linguist) //CHOMPEdit
pref.num_languages = 0 //CHOMPEdit
pref.num_languages = null //CHOMPEdit
pref.pos_traits -= trait
return TOPIC_REFRESH