Erwan
- fixing a potential segfault
This commit is contained in:
@@ -1063,9 +1063,8 @@ class AInstantPowerToughnessModifierUntilEOT: public InstantAbility{
|
|||||||
}
|
}
|
||||||
|
|
||||||
const char * getMenuText(){
|
const char * getMenuText(){
|
||||||
char buffer[4096];
|
sprintf(menuText, "%i/%i",power,toughness);
|
||||||
sprintf(buffer, "%i/%i",power,toughness);
|
return menuText;
|
||||||
return buffer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ostream& toString(ostream& out) const
|
virtual ostream& toString(ostream& out) const
|
||||||
|
|||||||
Reference in New Issue
Block a user