Skip to content

Commit

Permalink
fix WED-1520 crash upon revert
Browse files Browse the repository at this point in the history
  • Loading branch information
meikelm committed Aug 28, 2024
1 parent 800a24b commit 5fa338a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/WEDCore/README.WorldEditor
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ menu to view it online.

CHANGE HISTORY

WED 2.6.0r2
Bug fix:
- fix crash when reverting to existing scenery

WED 2.6.0r1 8/16/24
Bug fix:
- improve GW upgrade heuristics to change less JW lengths
Expand Down
5 changes: 4 additions & 1 deletion src/WEDCore/WED_Archive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ void WED_Archive::RemoveObject(WED_Persistent * inObject)
{
if (mDying) return;
++mCacheKey;
mObjects.erase(inObject->GetID());
auto iter = mObjects.find(inObject->GetID());
Assert(iter != mObjects.end());
iter->second = NULL;

#if WITHNWLINK
if (mNWAdapter) mNWAdapter->ObjectDestroyed(inObject);
#endif
Expand Down
8 changes: 4 additions & 4 deletions src/WEDCore/WED_Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@

// These versions are used in about boxes, resources, info boxes, etc.

#define WED_VERSION 2.6.0r1
#define WED_VERSION_STRING "2.6.0r1"
#define WED_VERSION 2.6.0r2
#define WED_VERSION_STRING "2.6.0r2"
#define WED_VERSION_STRING_SHORT "2.6" // omit beta/release number and trailing zero's

#define WED_COPYRIGHT_STRING "(C) Copyright 2007-2024, Laminar Research."

#define WED_VERSION_RES WED_VERSION_STRING
#define WED_VERSION_BIN 2,6,0,1
#define WED_VERSION_BIN 2,6,0,2

// This numeric is used by the gateway to understand if our WED is up-to-date.
// Format 1 digit major + 2 digit middle + 1 digit minor version + last digit
// last digit is 0 for all beta versions or matches release version
#define WED_VERSION_NUMERIC 20601
#define WED_VERSION_NUMERIC 20602

#endif /* WED_Version_H */
2 changes: 1 addition & 1 deletion src/WEDImportExport/WED_DSFExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ static int DSF_ExportTileRecursive(
{
c[0] = p.x();
c[1] = p.y();
c[2] = 0.6 * fst_info->max_height; // random (min_height, max_height);
c[2] = 0.8 * fst_info->max_height; // random (min_height, max_height);
c[3] = dem_info->xy_nearest(p.x(), p.y());

cbs->AddPolygonPoint_f(c, writer);
Expand Down

0 comments on commit 5fa338a

Please sign in to comment.