Ans-Bug beseitigt

This commit is contained in:
2014-04-11 12:21:39 +02:00
parent 9f2fcb77b0
commit c8b1c29e96

View File

@@ -85,7 +85,7 @@ namespace WorldOfPeacecraft
private void ProcessData (Block parentBlock)
{
if (parentBlock.GetStringValue ("ans") != null) {
if (parentBlock.ValueExists ("ans")) {
ProcessAnswer (parentBlock);
return;
}
@@ -486,6 +486,11 @@ namespace WorldOfPeacecraft
return Blocks;
}
public bool ValueExists (string name)
{
return Values.ContainsKey (name);
}
public string GetStringValue (string name)
{
try {