投稿者 トピック: [nightly] xmlで保存したゲームが読み込めない  (参照数 5342 回)

z9999+

  • 管理人
  • 急行
  • *
  • 投稿: 381
トンネルがあるゲームをxmlで保存すると、クラッシュして読み込めなくなる。

パッチを添付しました。

元トピック:[110.0.1以降] 110.0で読み込めた古いセーブゲームが読み込めない(2)から分離

コード: [選択]
Index: boden/tunnelboden.cc
===================================================================
--- boden/tunnelboden.cc (リビジョン 4819)
+++ boden/tunnelboden.cc (作業コピー)
@@ -19,8 +19,6 @@
 
 tunnelboden_t::tunnelboden_t(karte_t *welt, loadsave_t *file, koord pos ) : boden_t(welt, koord3d(pos,0), 0)
 {
- xml_tag_t t( file, "tunnelboden_t" );
-
  rdwr(file);
 
  // some versions had tunnel without tunnel objects


dwachs

  • 各駅停車
  • *
  • 投稿: 9
Imho this patch will break xml savegames created with current nightly versions.

z9999+

  • 管理人
  • 急行
  • *
  • 投稿: 381
I don't think so, but if you know different way to solve this problem.
Please do so.

prissi

  • 各駅停車
  • *
  • 投稿: 45
Thank you, it was indeed double during reading.